/*
 * Динамички генерисани стилови за фирму за намештај.
 */

/* Ресет и основне поставке */
body {
    background-color: #fff; /* Бела позадина за чистији изглед */
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Контејнер */
.container {
    width: 88%; /* IZMENJENO: NOVA VREDNOST za blago veću bočnu marginu */
    max-width: 1200px;
    margin: 0 auto;
}

/* ================== СТИЛОВИ ЗА НАВИГАЦИЈУ ================== */
.main-header {
    background-color: rgba(0, 0, 0, 0.8); /* Полу-транспарентна позадина */
    position: absolute; /* Поставља навигацију изнад Херо слике */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px; /* Величина логоа */
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: 1.1em;
    transition: color 0.3s;
}

.main-nav li a:hover {
    color: #A85F3C;
}

/* ================== СТИЛОВИ ЗА ПРЕСЛОВЉАВАЊЕ (ЋИР/ЛАТ) ================== */
.script-switcher {
    position: absolute; /* Ostaje absolute za desktop */
    right: 20px;
    top: 30px;
    z-index: 1001;
}
.script-switcher a {
    color: white;
    padding: 5px;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}
.script-switcher a:hover {
    background-color: #7A4A31;
    border-color: #7A4A31;
}


/* ================== СТИЛОВИ ЗА ХЕРО СЕКЦИЈУ ================== */
.hero-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
        /* ОВДЕ ЈЕ АЖУРИРАНА ПУТАЊА СЛИКЕ КОЈА КОРИСТИ PHP ПРОМЕНЉИВУ */
        url('uploads/hero_background.jpg') no-repeat center center/cover;
    height: 600px; /* Висина секције */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3em; /* IZMENJENO: Smanjeno sa 3.5em na 3em */
    margin: 0.1em 0;
    color: white; /* Наслов мора бити бео */
    font-family: "Georgia", serif;
}

.hero-content h2 {
    font-size: 1.5em;
    color: #eee;
    font-weight: normal;
    margin-bottom: 5px;
}

.hero-button {
    display: inline-block;
    background-color: #A85F3C;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: #7A4A31;
}

/* ================== СТИЛОВИ ЗА УСЛУГЕ (СЛИЧНО КАРТИЦАМА) ================== */
.services-section {
    text-align: center;
    padding: 50px 0;
    background-color: #F8F8F8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.service-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
}


/* ================== СТИЛОВИ ЗА ЛИСТУ ПРОЈЕКАТА (index.php) ================== */
.projects-section {
    padding: 50px 0;
}

.project-card-list {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.project-card-list a {
    display: inline-block;
    background-color: #A85F3C;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.project-card-list a:hover {
    background-color: #7A4A31; 
}


/* ================== ФУТЕР ================== */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}
footer a {
    color: #ccc;
    text-decoration: none;
}


/* ===== Responsive additions ===== */
.container { width: 88%; max-width: 1200px; margin: 0 auto; } /* PONOVLJENO: Da bi se osigurala nova margina */

.main-header { position: absolute; top: 0; } 

.nav-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }

.hamburger { display: none; cursor: pointer; color: #fff; font-size: 28px; line-height: 1; padding: 6px 10px; user-select: none; }
.hamburger:focus { outline: none; }

.main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }

.hero-section, .hero { min-height: 60vh; display: flex; align-items: center; background-size: cover; background-position: center; }

.service-grid, .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card img, .thumb, .gallery-item img { width: 100%; height: auto; display: block; border-radius: 6px; }

.project-card-list { border: 1px solid rgba(0,0,0,0.06); padding: 16px; border-radius: 8px; margin: 10px 0; }

.btn, .btn-primary { display: inline-block; padding: 10px 16px; text-decoration: none; border-radius: 6px; }

/* Small tablets and below */
@media (max-width: 992px) {
  .service-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 768px) {
    .logo-img { height: 40px; }
    .hamburger { display: block; color: #fff; }
    
    /* Kontejner navigacije */
    .nav-content { 
        flex-wrap: wrap; 
        flex-direction: row; /* IZMENJENO: Vraća se na horizontalni raspored: Logo levo, prostor desno */
        justify-content: space-between; 
        align-items: center;
    }

    /* Prebacivač pisma na mobilnom */
    .script-switcher {
        position: absolute; /* PROMENJENO: Vraća se na apsolutno pozicioniranje za mobilni */
        top: 15px;
        right: 80px; 
        left: auto;
        margin: 0;
        width: auto; 
        text-align: right;
        order: 1; 
    }
    
    /* Logo */
    .logo {
        order: 1; /* Logo ostaje prvi u flex kontejneru, na levoj strani */
        width: auto;
        text-align: left;
    }
    
    /* Hamburger */
    .hamburger {
        position: absolute; /* Vraća se na apsolutno za gornji desni ugao */
        top: 5px;
        right: 15px; /* Postavlja ga 15px od desne ivice */
        order: 2; 
    }

    /* Mobilna Navigacija (Meni) */
    .main-nav { 
        display: none; 
        width: 100%; 
        order: 3; 
    }
    .main-nav.open { 
        display: block; 
    }
    .main-nav ul { 
        flex-direction: column; 
        gap: 12px; 
        align-items: flex-start; 
        padding: 12px 0; 
        background: rgba(0, 0, 0, 0.9);
    }
    
    /* Hero sekcija */
    .hero-section { min-height: 400px; height: auto; padding: 100px 20px; }
    .hero-content h1 { font-size: 1.8em; } 
    
    .service-grid, .services-grid { grid-template-columns: 1fr; }
    
    .project-card-list { padding: 12px; }
    
    /* Dodatni padding na kontejneru za mobilni da se ne lepi za ivicu */
    .container {
        padding: 0 15px; 
        width: auto;
        max-width: 100%;
    }
}
 
/* Ultra small phones */
@media (max-width: 360px) {
  .logo-img { height: 32px; }
  .btn, .btn-primary { padding: 8px 12px; }
}
