/* ==========================================================================
   VS SPEKTAR - Glavna CSS datoteka
   Verzija: 2.0 (Spojeno s NUMERI strukturom i dodan Lightbox)
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700;900&family=Open+Sans:wght@400;700&display=swap');

/* ==========================================================================
   1. CSS Varijable i osnovne postavke
   ========================================================================== */

:root {
    --primary-color: #0a2342;   /* Tamno Plava */
    --secondary-color: #f5a623; /* Zlatno Narančasta */
    --dark-color: #212529; 
    --text-color: #666; 
    --light-gray-bg: #f8f9fa;
    --white-color: #ffffff;
    --font-headings: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --section-padding: 100px 0;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --color-success: #28a745;
    --color-error: #dc3545;
    --transition-base: 0.3s ease;
    --z-modal: 2000;
    --z-cookie-banner: 1500;
}

/* ==========================================================================
   2. Reset i osnovni stilovi
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--text-color); background-color: var(--white-color); }
.container { max-width: var(--container-width); width: 100%; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--secondary-color); }

/* ==========================================================================
   3. Pristupačnost
   ========================================================================== */

.skip-link { position: absolute; top: -50px; left: 6px; background: var(--primary-color); color: var(--white-color); padding: 8px 12px; text-decoration: none; border-radius: 4px; z-index: 9999; font-weight: bold; transition: top 0.3s ease; }
.skip-link:focus { top: 6px; }

/* ==========================================================================
   4. Tipografija i gumbi
   ========================================================================== */

h1, h2, h3 { font-family: var(--font-headings); color: var(--dark-color); line-height: 1.3; margin-bottom: 20px; font-weight: 700; }
h1 { font-size: 4rem; }
h2 { font-size: 2.8rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 15px; }

.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; font-weight: bold; text-transform: uppercase; transition: all var(--transition-base); border: 2px solid var(--secondary-color); font-family: var(--font-headings); cursor: pointer; text-align: center; }
.btn-primary { background-color: var(--secondary-color); color: var(--white-color); }
.btn-primary:hover { background-color: #e49b20; border-color: #e49b20; transform: translateY(-3px); color: var(--white-color); }

.btn .btn-loading { display: none; }
.btn.loading .btn-text { visibility: hidden; }
.btn.loading .btn-loading { display: inline; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.section-padding { padding: var(--section-padding); }
.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background-color: var(--primary-color); border-radius: 2px; }
.section-subtitle { font-family: var(--font-body); font-size: 1rem; color: var(--text-color); margin-bottom: 5px; }

.bg-light-gray { background-color: var(--light-gray-bg); }
.bg-dark { background-color: var(--primary-color); }
.bg-dark h2, .bg-dark h3, .bg-dark p, .bg-dark a { color: var(--white-color); }
.bg-dark a:hover { color: var(--secondary-color); }

/* ==========================================================================
   5. Header i Navigacija
   ========================================================================== */

.header { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 10px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: all var(--transition-base); }
.header.scrolled { background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo .logo-img { height: 60px; width: auto; }
.nav-main { margin: 0 auto; }
.nav-main a { margin: 0 15px; font-weight: bold; color: var(--dark-color); position: relative; padding: 5px 0; }
.nav-main a:hover, .nav-main a.active-nav { color: var(--primary-color); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-actions .lang-link { font-weight: bold; opacity: 0.8; color: var(--dark-color); }
.header-actions .lang-link.active { color: var(--primary-color); opacity: 1; pointer-events: none; }
.hamburger { display: none; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--primary-color); }
/* Stil za odabir jezika unutar mobilne navigacije */
.lang-mobile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 80%;
}

.lang-mobile .lang-link {
    font-weight: bold;
    color: var(--dark-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    display: inline-block; /* Osigurava da je link vidljiv */
    opacity: 1;
}

.lang-mobile .lang-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.lang-mobile span {
    color: #ccc;
    font-size: 1.2rem;
}

/* Mobilna Navigacija */
.nav-mobile { display: none; position: fixed; top: 82px; left: 0; width: 100%; background-color: #fff; flex-direction: column; align-items: center; padding: 20px 0; box-shadow: var(--box-shadow); z-index: 999; }
.nav-mobile.active { display: flex; }
.nav-mobile a { padding: 15px 0; font-size: 1.2rem; font-weight: bold; color: var(--dark-color); }
.no-scroll { overflow: hidden; }

/* ==========================================================================
   6. Sekcije
   ========================================================================== */

/* Hero */
.hero-section { min-height: 700px; height: 90vh; position: relative; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 35, 66, 0.65); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: left; }
.hero-content h1, .hero-content .hero-subtitle, .hero-content .hero-description { color: #ffffff; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); }
.hero-content .hero-description { font-size: 1.3rem; margin-bottom: 40px; max-width: 550px; }
.hero-content h1 { font-weight: 900; }

/* O Nama */
.about-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--box-shadow); }

/* Usluge */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--white-color); padding: 40px 30px; border-radius: var(--border-radius); text-align: center; border: 1px solid #eee; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--box-shadow); }
.service-card .icon { font-size: 3.5rem; margin-bottom: 20px; line-height: 1; }
.service-card h3 { color: var(--primary-color); font-size: 1.3rem; }

/* Značajke (Zašto odabrati nas) */
.attractions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { text-align: center; }
.feature-icon-circle { width: 120px; height: 120px; border-radius: 50%; background: var(--light-gray-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.feature-icon-circle .icon { font-size: 3.5rem; color: var(--primary-color); }

/* Galerija */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); aspect-ratio: 4/3; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 35, 66, 0.8); color: white; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; text-align: center; padding: 20px; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: var(--white-color); margin: 0; }

/* Kontakt */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.contact-info p { margin-bottom: 10px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--border-radius); font-family: var(--font-body); font-size: 1rem; background: rgba(255,255,255,0.1); color: var(--white-color); }
.contact-form ::placeholder { color: rgba(255,255,255,0.7); }
.form-status { margin-top: 15px; padding: 15px; border-radius: var(--border-radius); font-weight: bold; text-align: center; display: none; }
.form-status.show.success { background-color: var(--color-success); color: var(--white-color); display: block; }
.form-status.show.error { background-color: var(--color-error); color: var(--white-color); display: block; }

/* ==========================================================================
   7. Lightbox
   ========================================================================== */

.lightbox { display: none; position: fixed; z-index: var(--z-modal); left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.show { opacity: 1; display: flex; }
.lightbox-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); cursor: pointer; }
.lightbox-container { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 10px; }
.lightbox-content { margin: auto; display: block; max-width: 90vw; max-height: 90vh; animation: zoom 0.5s ease; border-radius: 4px; z-index: calc(var(--z-modal) + 5); }
@keyframes zoom { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-close, .lightbox-prev, .lightbox-next { background: none; border: none; color: #fff; cursor: pointer; position: absolute; z-index: calc(var(--z-modal) + 10); transition: color 0.3s ease, transform 0.3s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--secondary-color); }

.lightbox-close { top: 15px; right: 25px; font-size: 40px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 0 20px; }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.lightbox-title { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: white; background-color: rgba(0,0,0,0.5); padding: 10px 20px; border-radius: var(--border-radius); text-align: center; z-index: calc(var(--z-modal) + 5); }

/* ==========================================================================
   8. Footer i Ostalo
   ========================================================================== */

.footer { background-color: var(--dark-color); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-social a {
    color: var(--white-color);
    margin-left: 15px;
    display: inline-block; /* Dobra praksa za linkove s ikonicama */
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color); /* Ovo pravilo već postoji i sada će utjecati i na SVG */
    transform: scale(1.1);
}

/* NOVI STIL ZA SVG IKONICE */
.footer-social a svg {
    width: 24px;  /* Definicija širine ikonice */
    height: 24px; /* Definicija visine ikonice */
    fill: currentColor; /* KLJUČNO: SVG preuzima boju od roditeljskog 'a' linka */
    vertical-align: middle; /* Bolje poravnanje s tekstom ako ga ima */
}
.footer p a { color: var(--white-color); font-weight: bold; }
.footer p a:hover { color: var(--secondary-color); text-decoration: underline; }

/* Cookie Banner */
#cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: rgba(10, 35, 66, 0.95); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; z-index: var(--z-cookie-banner); transition: bottom 0.5s ease-in-out; border-top: 1px solid rgba(255, 255, 255, 0.1); }
#cookie-banner.show { bottom: 0; }
#cookie-banner p { margin: 0; }
.btn-cookie { padding: 8px 20px; background-color: var(--secondary-color); color: var(--white-color); border: none; border-radius: 5px; cursor: pointer; margin-left: 20px; text-transform: uppercase; font-weight: bold; }

/* ==========================================================================
   9. Responsivni dizajn
   ========================================================================== */

@media (max-width: 991px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .contact-wrapper, .about-wrapper { grid-template-columns: 1fr; }
    .about-wrapper { text-align: center; }
    .about-image { max-width: 300px; margin: 30px auto 0; }
}

@media (max-width: 767px) {
    .section-padding { padding: 80px 0; }
    h1 { font-size: 2.2rem; }
    .nav-main, .header-actions .lang-link { display: none; }
    .hamburger { display: block; }
    .hero-content { text-align: center; }
    .hero-content .hero-description { max-width: none; font-size: 1.1rem; }
    .footer-content { justify-content: center; text-align: center; }
    #cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
    .btn-cookie { margin-left: 0; }
    .lightbox-prev, .lightbox-next { display: none; } /* Sakrij strelice na mobitelu */
}