/* ==========================================================================
   1. OSNOVNE POSTAVKE I VARIJABLE
   ========================================================================== */
:root {
    /* Premium Paleta Boja */
    --primary-dark: #070d14;    /* Najtamnija (skoro crna) za dubinu */
    --secondary-dark: #0f1c2a;  /* Navy plava za kartice i modale */
    --gold: #c5a059;            /* Luksuzna zlatna boja */
    --gold-hover: #b08d4a;      /* Tamnija zlatna za hover */
    --text-light: #ffffff;
    --text-gray: #a0aab2;
    --bg-light: #f9f9f9;
    
    /* Tipografija */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Tranzicije */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.fw-is-loading .site-main { opacity: 0.001; }
body.fw-is-ready .site-main { opacity: 1; transition: opacity .18s ease; }

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

a { text-decoration: none; transition: var(--transition); color: inherit; }

/* Pomoćne (Utility) klase */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-light { color: var(--text-light) !important; }
.justify-center { display: flex; justify-content: center; }
.w-100 { width: 100%; }
.relative-z { position: relative; z-index: 3; }

/* ==========================================================================
   2. TIPOGRAFIJA I DUGMIĆI (SA HOVER IKONICAMA)
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.section-kicker {
    display: block; color: var(--gold); font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; font-family: var(--font-body);
}

.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 30px; color: var(--primary-dark); }

/* Osnovno dugme */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; cursor: pointer; border: none; transition: var(--transition);
    font-family: var(--font-body); border-radius: 2px;
}

.btn-sm { padding: 12px 24px; font-size: 12px; }

.btn-gold { background: var(--gold); color: var(--primary-dark); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2); }

.btn-outline { border: 1px solid var(--gold); color: var(--text-light); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--primary-dark); }

/* --- HOVER EFEKAT ZA DUGMAD SA IKONICOM --- */
.btn-hover-icon {
    display: inline-flex; align-items: center; gap: 0; /* U početku nema gap-a */
    overflow: hidden; transition: gap 0.3s ease, background 0.3s, transform 0.3s;
}

.btn-hover-icon .btn-icon {
    max-width: 0; opacity: 0; transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-hover-icon:hover { gap: 10px; } /* Na hover dodajemo razmak */
.btn-hover-icon:hover .btn-icon {
    max-width: 24px; opacity: 1; transform: translateX(0); /* Ikonica se pojavljuje */
}

/* ==========================================================================
   3. HEADER I OFF-CANVAS MENI
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 25px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(7, 13, 20, 0.95); backdrop-filter: blur(10px);
    padding: 15px 0; border-bottom-color: rgba(197, 160, 89, 0.3);
}

.header-inner { display: flex; justify-content: flex-start; align-items: center; width: 100%; max-width: none; padding: 0 28px 0 16px; gap: 24px; }
.site-header .container { max-width: 100%; padding: 0; }

.logo-wrap { display:flex; align-items:center; margin-right:auto; min-width:0; }
.logo {
    font-size: 22px; font-weight: 700; color: var(--text-light);
    display: inline-flex; align-items: center; gap: 10px;
    text-transform: uppercase; letter-spacing: 1px;
}
.logo-wrap .custom-logo-link,
.logo .custom-logo-link{display:inline-flex;align-items:center;}

/* WordPress Logo Image Stilizacija iz Customizer-a */
.custom-logo {
    max-width: var(--logo-max-width, 250px);
    height: auto;
    transition: var(--transition);
}

.menu-toggle {
    background: transparent; border: none; color: var(--gold); cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; letter-spacing: 2px;
}

/* Off-canvas Meni */
.offcanvas-menu {
    position: fixed; top: 0; right: -400px; width: 350px; max-width: 100%; height: 100vh;
    background: var(--secondary-dark); z-index: 10000; padding: 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}

.offcanvas-menu.active { right: 0; }

.close-btn {
    align-self: flex-end; background: transparent; border: none;
    color: var(--text-gray); cursor: pointer; margin-bottom: 40px; transition: var(--transition);
}
.close-btn:hover { color: var(--gold); transform: rotate(90deg); }

.offcanvas-nav ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.offcanvas-nav a { font-size: 18px; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; }
.offcanvas-nav a:hover { color: var(--gold); padding-left: 10px; }

.offcanvas-bottom { margin-top: auto; }

.offcanvas-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999; opacity: 0; visibility: hidden;
    transition: var(--transition); backdrop-filter: blur(5px);
}
.offcanvas-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   4. HERO SEKCIJA (KEN BURNS I SLAJDER)
   ========================================================================== */
.hero { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; }

.hero-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}

.hero-slide.active { opacity: 1; animation: kenburns 15s ease-out forwards; }

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to bottom, rgba(7, 13, 20, 0.8) 0%, rgba(7, 13, 20, 0.4) 50%, rgba(7, 13, 20, 0.9) 100%);
}

.hero-content { position: relative; z-index: 3; padding-top: 60px; max-width: 900px; margin: 0 auto; }
.hero-title,
#hero .hero-title,
#hero .hero-title * { font-size: clamp(3.5rem, 7vw, 6.5rem); margin-bottom: 20px; line-height: 1.1; color: var(--text-light) !important; }
#hero .hero-title .text-gold { color: var(--gold) !important; }
.hero-desc,
#hero .hero-desc { font-size: 1.15rem; color: var(--text-gray) !important; margin: 0 auto 40px; max-width: 700px; line-height: 1.8; }
.hero-btns { gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   5. INFOBAR MARQUEE
   ========================================================================== */
.infobar-marquee {
    background: var(--gold); color: var(--primary-dark);
    padding: 15px 0; overflow: hidden; position: relative; z-index: 10;
    display: block; border-bottom: 2px solid rgba(0,0,0,0.1);
}
.infobar-marquee-viewport { overflow: hidden; width: 100%; }
.infobar-track { display: flex; align-items: center; width: max-content; white-space: nowrap; will-change: transform; animation: scroll-left var(--marquee-duration, 30s) linear infinite; }
.infobar-group { display: flex; align-items: center; flex-shrink: 0; }
.infobar-item { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: inline-flex; align-items: center; gap: 15px; padding-right: 50px; flex-shrink: 0; }

@keyframes scroll-left { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)),0,0); } }

/* ==========================================================================
   6. ABOUT SEKCIJA SA IMAGE SLIDEROM
   ========================================================================== */
.about-section { padding: 120px 0; background: var(--bg-light); color: var(--primary-dark); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content p { color: #555; margin-bottom: 25px; font-size: 1.1rem; line-height: 1.8; }

.about-image-scroller {
    position: relative; overflow: hidden; border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); aspect-ratio: 4/3;
}
.about-slides-container { position: relative; width: 100%; height: 100%; }
.about-slide-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out;
}
.about-slide-img.active { opacity: 1; z-index: 2; }

.about-slider-controls { position: absolute; bottom: 20px; right: 20px; z-index: 10; display: flex; gap: 10px; }
.about-slider-controls button {
    background: rgba(7, 13, 20, 0.7); border: 1px solid var(--gold); color: var(--text-light);
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); border-radius: 2px;
}
.about-slider-controls button:hover { background: var(--gold); color: var(--primary-dark); }

/* ==========================================================================
   7. SERVICES (DYNAMIC BACKGROUND HOVER)
   ========================================================================== */
.services-section { position: relative; padding: 120px 0; overflow: hidden; background-color: var(--primary-dark); }

.services-bg-container { position: absolute; inset: 0; z-index: 1; }
.service-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.6s ease-in-out, transform 6s linear; transform: scale(1);
}

/* Aktivirana pozadina na hover */
.service-bg.active { opacity: 1; transform: scale(1.05); }

.services-overlay { position: absolute; inset: 0; background: rgba(7, 13, 20, 0.85); z-index: 2; transition: var(--transition); }
.services-section:hover .services-overlay { background: rgba(7, 13, 20, 0.75); }

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

.service-card {
    background: rgba(15, 28, 42, 0.5); backdrop-filter: blur(5px);
    padding: 40px; border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition); border-radius: 4px; cursor: pointer;
}
.service-card:first-child {
    background: rgba(15, 28, 42, 0.78);
    border-color: rgba(197, 160, 89, 0.45);
}
.service-card:first-child .service-icon,
.service-card:first-child h3 { color: var(--text-light); }

.service-card:hover {
    background: rgba(15, 28, 42, 0.9); border-color: var(--gold); transform: translateY(-10px);
}

.service-icon { color: var(--gold); margin-bottom: 20px; transition: var(--transition); }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-title { font-size: 1.5rem; margin-bottom: 15px; font-family: var(--font-body); }
.service-text { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 25px; }

.read-more {
    color: var(--gold); font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; display: inline-flex; align-items: center; gap: 5px;
}
.read-more:hover { gap: 10px; color: var(--text-light); }

/* ==========================================================================
   8. TESTIMONIALS MARQUEE
   ========================================================================== */
.testimonials-section { padding: 120px 0; background: var(--primary-dark); overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); }

.testimonials-marquee-wrapper { position: relative; width: 100%; display: flex; margin-top: 50px; }
.testimonials-marquee-wrapper::before, .testimonials-marquee-wrapper::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.testimonials-marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--primary-dark), transparent); }
.testimonials-marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--primary-dark), transparent); }

.testimonials-track { display: flex; gap: 30px; padding-left: 30px; animation: scroll-testimonials 50s linear infinite; }
.testimonials-track:hover { animation-play-state: paused; }

@keyframes scroll-testimonials { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.testimonial-card {
    min-width: 450px; background: var(--secondary-dark); padding: 40px;
    border-left: 3px solid var(--gold); border-radius: 4px;
}
.testimonial-quote { font-size: 1.1rem; font-style: italic; color: var(--text-gray); margin-bottom: 25px; line-height: 1.8; }
.author-name { font-weight: 700; color: var(--text-light); font-size: 1rem; display: block; }
.author-role { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; display: block; }

/* ==========================================================================
   9. GOOGLE MAP I KONTAKT OVERLAY
   ========================================================================== */
.location-section { position: relative; height: 650px; display: flex; align-items: center; }
.map-container { position: absolute; inset: 0; z-index: 1; }

.map-overlay-card {
    position: relative; z-index: 2; background: var(--secondary-dark);
    padding: 40px; width: 90%; max-width: 450px; margin-left: 5%;
    border-left: 4px solid var(--gold); border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.overlay-title { font-size: 1.8rem; margin-bottom: 30px; color: var(--gold); }
.overlay-info-item { display: flex; gap: 15px; margin-bottom: 20px; font-size: 14px; align-items: flex-start; }
.overlay-info-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.overlay-info-item p { color: var(--text-gray); line-height: 1.6; }
.overlay-info-item a { color: var(--text-light); transition: var(--transition); }
.overlay-info-item a:hover { color: var(--gold); }
.overlay-actions { display: flex; flex-direction: column; gap: 15px; margin-top: 35px; }

/* ==========================================================================
   10. MODAL BOX I ELEMENTOR FORMA (SEND INQUIRY)
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(7, 13, 20, 0.9); z-index: 10000;
    opacity: 0; visibility: hidden; display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    background: var(--secondary-dark); padding: 50px; border-radius: 4px;
    width: 95%; max-width: 900px; max-height: 90vh; overflow-y: auto;
    position: relative; border-top: 4px solid var(--gold);
    transform: translateY(50px); transition: transform 0.4s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-container { transform: translateY(0); }

.modal-close-btn {
    position: absolute; top: 20px; right: 20px; background: transparent; border: none;
    color: var(--text-gray); cursor: pointer; transition: var(--transition);
}
.modal-close-btn:hover { color: var(--gold); transform: rotate(90deg); }

.modal-header { text-align: center; margin-bottom: 40px; }
.modal-header h2 { font-size: 2.5rem; color: var(--gold); margin-bottom: 10px; }
.modal-header p { color: var(--text-gray); }

/* Ako ubaciš shortcode, ovo će pomoći da se forma lepo prikaže unutar modala */
.modal-body form { width: 100%; }
.modal-body .wpcf7, .modal-body .elementor-form { margin: 0 auto; width: 100%; }

/* ==========================================================================
   11. FOOTER (FIXED REVEAL EFEKAT & BACK TO TOP)
   ========================================================================== */
.site-main { position: relative; z-index: 2; background: var(--primary-dark); }
.fixed-footer-wrapper { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1; background: #04080c; }

.site-footer { padding: 80px 0 30px; border-top: 1px solid rgba(197, 160, 89, 0.2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-mission { color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; max-width: 350px; }
.footer-signature { font-family: var(--font-heading); font-size: 1.2rem; }

.footer-title { color: var(--text-light); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 15px; }
.footer-nav a { color: var(--text-gray); }
.footer-nav a:hover { color: var(--gold); }
.contact-info li { display: flex; align-items: center; gap: 12px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; display: flex; justify-content: center; position: relative; }
.copyright { color: var(--text-gray); font-size: 13px; }

/* Back To Top Dugme u Footeru */
.back-to-top {
    position: absolute; right: 0; top: 15px;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%;
    color: var(--gold); transition: var(--transition);
}
.back-to-top:hover { background: var(--gold); color: var(--primary-dark); transform: translateY(-5px); }

/* ==========================================================================
   12. RESPONSIVE DESIGN (TABLETI I MOBILNI)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .testimonial-card { min-width: 350px; }
    
    /* Na tabletima isključujemo fixed footer reveal jer nekad pravi problem */
    .fixed-footer-wrapper { position: relative; z-index: 3; }
    .site-main { margin-bottom: 0 !important; }
}

@media (max-width: 768px) {
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    
    .header-inner { padding: 0 18px 0 10px; }
    .infobar-item { font-size: 10px; padding-right: 30px; }
    .about-section, .services-section, .testimonials-section, .location-section { padding: 80px 0; }
    
    .modal-container { padding: 30px 20px; }
    
    .map-overlay-card { margin-left: 0; width: 100%; max-width: 100%; border-left: none; border-top: 4px solid var(--gold); box-shadow: none; border-radius: 0; }
    .location-section { flex-direction: column; height: auto; }
    .map-container { position: relative; height: 350px; width: 100%; }
    
    .back-to-top { position: relative; right: auto; top: auto; margin-top: 20px; }
    .footer-bottom { flex-direction: column; align-items: center; }
}

/* =========================================================
   GENERIC PAGES / ELEMENTOR SUPPORT
   ========================================================= */
.fw-generic-page {
    position: relative;
    padding: 140px 0 80px;
    background: var(--bg-dark);
    min-height: 60vh;
}

.fw-standard-page .container,
.fw-single-page .container,
.fw-archive-page .container,
.fw-search-page .container,
.fw-404-page .container,
.fw-index-page .container {
    max-width: 1240px;
}

.fw-entry-card {
    background: rgba(12, 17, 28, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
    margin-bottom: 24px;
}

.fw-entry-title {
    color: var(--text-light);
    margin: 0 0 18px;
}

.fw-entry-title a { color: inherit; text-decoration: none; }
.fw-entry-content,
.fw-entry-content p,
.fw-entry-content li { color: var(--text-gray); }
.fw-entry-content a { color: var(--gold); }
.fw-entry-content > *:first-child { margin-top: 0; }
.fw-entry-content > *:last-child { margin-bottom: 0; }
.fw-pagination { margin-top: 28px; }
.fw-pagination .nav-links { display:flex; gap:10px; flex-wrap:wrap; }
.fw-pagination .page-numbers {
    display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px;
    padding:0 14px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--text-light); text-decoration:none;
}
.fw-pagination .page-numbers.current,
.fw-pagination .page-numbers:hover { background: var(--gold); color: #111; }

.fw-elementor-page {
    padding-top: 110px;
    padding-bottom: 0;
}

.fw-elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1240px;
}

.fw-elementor-page .fw-entry-content {
    display: contents;
}

.search-form { display:flex; gap:12px; flex-wrap:wrap; }
.search-form input[type="search"] {
    flex:1 1 260px; min-height:50px; border-radius:999px; border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06); color:var(--text-light); padding:0 18px;
}
.search-form input[type="submit"] {
    min-height:50px; border:none; border-radius:999px; background:var(--gold); color:#111; padding:0 22px; font-weight:700; cursor:pointer;
}

@media (max-width: 768px) {
    .fw-generic-page { padding: 120px 0 64px; }
    .fw-entry-card { padding: 22px; border-radius: 18px; }
    .fw-elementor-page { padding-top: 96px; }
}


/* Full Pro render/order protection */
body.home .site-main,
body.fw-front-page .site-main { background: var(--primary-dark); }
#hero .btn.btn-gold { background: var(--gold) !important; color: var(--primary-dark) !important; border: 1px solid var(--gold) !important; }
#hero .btn.btn-outline { color: var(--text-light) !important; border: 1px solid var(--gold) !important; background: transparent !important; }
body.elementor-page .site-main { opacity: 1 !important; }
