/*
Theme Name: OnePress Child
Theme URI: http://example.com/onepress-child
Description: A child theme for the OnePress theme
Author: Ksenija
Template: onepress
Version: 1.0.0
*/

@import url("../onepress/style.css");


/* ================================================================
   1. GLOBALNO — Pozadina, boje, tipografija
   ================================================================ */

body,
body.single,
body.single-projekti,
body.single-post,
body.page,
body.archive,
body.post-type-archive,
body.post-type-archive-projekti {
    background-color: #FFF8E4 !important;
    color: #3A3A3A !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
}

.site,
.site-content,
.site-main,
#content,
#primary,
.content-area,
body #o-pricotvorcima,
#programi,
#projekti,
#galerija,
#vijesti,
#kontakt,
#masthead {
    background-color: #FFF8E4 !important;
}

/* Linkovi */
a {
    color: #D58849 !important;
}
a:hover {
    color: #3A3A3A !important;
}

/* Naslovi */
h1, h2, h3, h4, h5, h6 {
    color: #ABA05A !important;
}

/* Header i footer — bijeli tekst */
#header-section,
#header-section a,
#colophon,
#colophon a {
    color: #fff !important;
}
#header-section a:hover {
    color: #3A3A3A !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* ================================================================
   2. TIPOGRAFIJA — Playfair Display + Inter
   ================================================================ */

/* Glavni naslovi — Playfair Bold Uppercase */
h1, h2, h3,
.section-title,
.entry-title,
.service-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Podnaslovi — Playfair Regular */
h4, h5, h6,
.section-subtitle {
    font-family: 'Playfair Display', serif !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
}

/* Tekst */
p, li, td, input, textarea, select {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
}

/* Dugmad — Inter AllCaps */
a.btn,
button,
input[type="submit"] {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-radius: 6px;
}


/* ================================================================
   3. NAVIGACIJA
   ================================================================ */

/* Tamna navigacija na krem pozadini (unutrašnje stranice + scroll) */
#masthead .onepress-menu > li > a,
#masthead .onepress-menu ul li a {
    color: #3A3A3A !important;
}

/* Bijela navigacija na hero sekciji (početna, na vrhu) */
.is-transparent .no-scroll #masthead .onepress-menu > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
}

#masthead .onepress-menu > li > a:hover,
#masthead .onepress-menu ul li a:hover,
#masthead .onepress-menu li.onepress-current-item > a,
#masthead .onepress-menu > li > a.menu-actived {
    color: #D58849 !important;
}


/* ================================================================
   4. SLIKE
   ================================================================ */

.inner-content img:not(.featured-in-post) {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

#projekti .wp-post-image {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
}

#o-pricotvorcima .wp-post-image {
    height: 300px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* Zoom efekat — overflow na roditeljima */
.about-image,
.feature-media,
.service-thumbnail,
.list-article-thumb,
.g-item {
    overflow: hidden;
    background: transparent;
}

.about-image img,
.feature-media img,
.service-thumbnail img,
.list-article-thumb img,
.g-item img {
    transition: transform 0.3s ease;
    display: block;
}

.about-image img:hover,
.feature-media img:hover,
.service-thumbnail img:hover,
.list-article-thumb img:hover,
.g-item img:hover {
    transform: scale(1.05);
}


/* ================================================================
   5. PROJEKTI
   ================================================================ */

.projekti-header {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.projekti-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.projekti-header-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.projekti-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
}

.projekti-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
}

.projekti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.projekat-item {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    background: #FBE3D0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projekat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.projekat-image img {
    max-width: 100%;
    height: 220px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.projekat-title {
    font-size: 1.5rem;
    color: #ABA05A;
    margin-bottom: 10px;
    font-weight: bold;
}

.projekat-single-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.projekat-excerpt {
    font-size: 1rem;
    color: #3A3A3A;
    margin-bottom: 15px;
}

.projekat-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #D58849;
    border: 2px solid #D58849 !important;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.projekat-link:hover,
.projekat-link:focus,
.projekat-link:active {
    background: #D58849;
    color: #3A3A3A;
    border-color: #D58849 !important;
    outline: none !important;
    box-shadow: none !important;
}

.no-projekti {
    text-align: center;
    font-size: 1.2rem;
    color: #3A3A3A;
}

.projekat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.projekat-header {
    margin-bottom: 30px;
}

.projekat-thumbnail {
    margin-bottom: 30px;
}

.projekat-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3A3A3A;
    margin-bottom: 30px;
}

.projekat-footer {
    font-size: 0.9rem;
    color: #3A3A3A;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 30px;
}

.projekat-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projekat-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}


/* ================================================================
   6. SERVISI / KARTICE
   ================================================================ */

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FBE3D0 !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.service-title {
    font-size: 1.5rem;
    color: #ABA05A;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 1rem;
    color: #3A3A3A;
    margin-bottom: 15px;
}

.btn-projekti {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #D58849;
    border: 2px solid #D58849 !important;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: none !important;
    outline: none !important;
}

.btn-projekti:hover,
.btn-projekti:focus,
.btn-projekti:active,
.btn-projekti:active:focus {
    background: #D58849;
    color: #3A3A3A;
    border-color: #D58849 !important;
    box-shadow: none !important;
    outline: none !important;
}


/* ================================================================
   7. BIBLIOTEKA / DOKUMENTI
   ================================================================ */

.biblioteka-title,
.izvjestaji-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ABA05A;
    margin-bottom: 30px;
}

.dokument-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.dokument-item {
    background: #FBE3D0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dokument-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dokument-icon {
    font-size: 3rem;
    color: #D58849;
    margin-bottom: 15px;
}

.dokument-title {
    font-size: 1.5rem;
    color: #ABA05A;
    margin-bottom: 10px;
}

.dokument-content {
    font-size: 1rem;
    color: #3A3A3A;
    margin-bottom: 15px;
}

.dokument-preview {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    background: transparent;
    color: #D58849;
    border: 2px solid #D58849;
}

.dokument-preview:hover {
    background: #EA4526;
    color: #fff;
    border-color: #EA4526;
}

.no-dokumenti {
    text-align: center;
    font-size: 1.2rem;
    color: #3A3A3A;
}


/* ================================================================
   8. FOOTER
   ================================================================ */

.site-footer .footer-widgets {
    display: none !important;
}

.footer-menu-container {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-menu-container ul {
    display: inline;
    padding-left: 0;
}

.footer-menu-container li {
    list-style-type: none;
    display: inline;
}

.footer-menu-container li::before {
    content: "\007C";
    font-family: FontAwesome;
    margin-left: 6px;
    margin-right: 8px;
}

.footer-menu-container li:first-of-type::before {
    content: none;
    margin-right: 0;
}

.footer-menu-container li:last-of-type {
    margin-right: 0;
}

.footer-menu-container ul li a {
    color: #D58849;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-container ul li a:hover {
    color: #EA4526;
}

.footer-social-icons {
    text-align: center;
    margin: 15px 0;
}

.footer-social-icons .social-icon {
    display: inline-block;
    margin: 0 10px;
    color: #D58849;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social-icons .social-icon:hover {
    color: #EA4526;
}


/* ================================================================
   9. FEATURED IMAGE U POSTU
   ================================================================ */

/* Desktop — float desno */
.featured-in-post {
    float: right;
    margin: 0 0 20px 25px;
    max-width: 320px;
    width: 40%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Desktop — sakrij banner */
@media (min-width: 769px) {
    .featured-in-post-banner {
        display: none;
    }
}

/* Mobilna — banner, sakrij float sliku */
@media (max-width: 768px) {
    .featured-in-post {
        display: none;
    }
    .featured-in-post-banner {
        background-size: cover;
        background-position: center;
        height: 220px;
        border-radius: 12px;
        margin-bottom: 25px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
}

.blog-entry article,
.list-article,
.list-article.clearfix {
    background: transparent !important;
}