/* ==========================================================================
   NUMERI j.d.o.o. - Custom Redesign CSS
   Verzija: 4.3 (Final Polish)
   ========================================================================== */

/* 1. FONTOVI I VARIJABLE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700;900&display=swap');

:root {
    --primary-color: #2B394A;
    --secondary-color: #C5A475;
    --background-color: #F5F7FA;
    --text-color: #333;
    --light-text-color: #F5F7FA;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-headings: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1140px;
    --section-padding: 120px 0;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* 2. OSNOVNI STILOVI I RESET
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
}

html, body { 
    font-family: var(--font-body); 
    line-height: 1.7; 
    color: var(--text-color); 
    background-color: var(--background-color); 
    overflow-x: hidden;
}

body.no-scroll { 
    overflow: hidden; 
}

.container { 
    max-width: var(--container-width); 
    width: 100%; 
    margin: 0 auto; 
    padding: 0 20px; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-headings); 
    color: var(--primary-color); 
    line-height: 1.3; 
    font-weight: 700; 
}

p { 
    margin-bottom: 1rem; 
}

a { 
    color: var(--secondary-color); 
    text-decoration: none; 
    transition: color var(--transition-speed) ease; 
}

a:hover { 
    color: var(--primary-color); 
}

.section-padding { 
    padding: var(--section-padding); 
}

.bg-light { 
    background-color: #fff; 
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
}

.bg-dark { 
    background-color: var(--primary-color); 
}

.subtitle { 
    font-family: var(--font-body); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--secondary-color); 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    z-index: 9999;
    transition: top 0.3s ease-in-out;
    text-decoration: underline;
}

.skip-link:focus {
    top: 0;
}

/* 3. HEADER I NAVIGACIJA
   ========================================================================== */
.header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1001; 
    padding: 15px 0; 
    background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid transparent; 
    transition: all var(--transition-speed) ease; 
}

.header.scrolled { 
    padding: 10px 0; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    border-bottom-color: var(--border-color); 
}

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

.logo .logo-img { 
    height: 50px; 
    width: auto; 
    transition: height var(--transition-speed) ease; 
}

.header.scrolled .logo .logo-img { 
    height: 40px; 
}

.nav-main a { 
    margin: 0 20px; 
    font-weight: 700; 
    color: var(--primary-color); 
    position: relative; 
    padding-bottom: 5px; 
}

.nav-main a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background-color: var(--secondary-color); 
    transition: width var(--transition-speed) ease; 
}

.nav-main a:hover::after, .nav-main a.active-nav::after { 
    width: 100%; 
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

.language-switcher { 
    display: flex; 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    overflow: hidden; 
}

.language-switcher .lang-link { 
    margin: 0; 
    font-weight: 700; 
    font-size: 0.8rem; 
    color: var(--primary-color); 
    padding: 5px 12px; 
    transition: all var(--transition-speed) ease; 
}

.language-switcher .lang-link:not(.active):hover { 
    background-color: rgba(0,0,0,0.05); 
}

.language-switcher .lang-link.active { 
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
    pointer-events: none; 
}

.hamburger { 
    display: none; 
    width: 30px; 
    height: 24px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    position: relative; 
    z-index: 1001; 
}

.hamburger span { 
    display: block; 
    position: absolute; 
    height: 3px; 
    width: 100%; 
    background: var(--primary-color); 
    border-radius: 3px; 
    left: 0; 
    transition: all var(--transition-speed) ease-in-out; 
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span { background-color: var(--light-text-color); }
.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.hamburger.active span:nth-child(2) { opacity: 0; left: -30px; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

.nav-mobile { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: var(--primary-color); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    transform: translateX(100%); 
    transition: transform var(--transition-speed) ease-in-out; 
}

.nav-mobile.active { 
    transform: translateX(0); 
}

.nav-mobile a { 
    color: var(--light-text-color); 
    font-size: 2rem; 
    font-family: var(--font-headings); 
    margin: 20px 0; 
}

.lang-mobile.language-switcher { 
    margin-top: 40px; 
    border-color: rgba(255, 255, 255, 0.3); 
}

.lang-mobile .lang-link { 
    font-size: 1rem; 
    padding: 8px 18px; 
    color: var(--light-text-color); 
}

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

/* 4. HERO SEKCIJA
   ========================================================================== */
/*
  NAPREDNA OPTIMIZACIJA - WEBP ZA CSS POZADINE:
  Za korištenje WebP formata za CSS pozadinske slike, ne može se koristiti <picture> tag.
  Umjesto toga, koristi se JavaScript za detekciju podrške za WebP i dodavanje klase na <body>, npr. 'webp' ili 'no-webp'.
  
  Primjer JS-a (staviti u <head>):
  (function(){
    var a=new Image();
    a.onload=a.onerror=function(){
      document.body.classList.add(a.height==2?'webp':'no-webp');
    };
    a.src='data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA';
  })();

  Primjer CSS-a:
  .webp .hero-section {
    background-image: url('hero-background.webp');
  }
  .no-webp .hero-section {
    background-image: url('hero-background.jpg');
  }
*/
.hero-section { 
    min-height: 80vh; 
    padding: 150px 0; 
    display: flex; 
    align-items: center; 
    background: linear-gradient(135deg, var(--primary-color) 0%, #3f5874 100%); 
    color: var(--light-text-color); 
}

.hero-content { max-width: 800px; }
.hero-subtitle { color: var(--secondary-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem; }
.hero-title { color: var(--light-text-color); font-size: 3.5rem; font-weight: 900; margin-bottom: 1.5rem; }
.hero-description { font-size: 1.2rem; line-height: 1.8; max-width: 650px; opacity: 0.9; margin-bottom: 2rem; }
.btn { padding: 15px 35px; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--border-radius); border: 2px solid var(--secondary-color); transition: all var(--transition-speed) ease; cursor: pointer; }
.btn-primary { background-color: var(--secondary-color); color: var(--primary-color); }
.btn-primary:hover { background-color: transparent; color: var(--secondary-color); }

/* 5. O NAMA SEKCIJA
   ========================================================================== */
.about-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 5rem; align-items: center; }
#about-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-quote { border-left: 4px solid var(--secondary-color); padding-left: 2rem; }
.about-quote blockquote { margin: 0; }
.about-quote p { font-family: var(--font-headings); font-size: 1.3rem; font-style: italic; color: var(--primary-color); }
.about-quote footer { margin-top: 1rem; font-weight: 700; color: var(--text-color); }

/* 6. USLUGE SEKCIJA (ACCORDION)
   ========================================================================== */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.8rem; }
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:first-child { border-top: 1px solid var(--border-color); }
.accordion-header { width: 100%; background: none; border: none; padding: 1.5rem 1rem; text-align: left; font-family: var(--font-headings); font-size: 1.3rem; font-weight: 700; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color var(--transition-speed) ease; }
.accordion-header:hover { background-color: rgba(0,0,0,0.02); }
.accordion-icon { width: 1.2em; height: 1.2em; transition: transform var(--transition-speed) ease; flex-shrink: 0; margin-left: 1rem; color: var(--secondary-color); }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; }
.accordion-content ul { list-style: none; padding: 0 1rem 1.5rem 1rem; margin: 0; }
.accordion-content li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; }
.accordion-content li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background-color: var(--secondary-color); position: absolute; left: 0; top: 1.1rem; }


/* 7. KONTAKT SEKCIJA
   ========================================================================== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info h2, .contact-info p, .contact-info a { color: var(--light-text-color); }
.contact-info .subtitle { color: var(--secondary-color); }
.contact-info h2 { font-size: 2.8rem; }
.contact-info a:hover { color: var(--secondary-color); }
.contact-details { margin-top: 2rem; }
.contact-details p { margin-bottom: 0.5rem; opacity: 0.9; }
.contact-details strong { color: var(--secondary-color); }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--border-radius); color: var(--light-text-color); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition-speed) ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-color); }
.contact-form ::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact-form button { width: 100%; }
.contact-form .form-status { margin-top: 1rem; padding: 0.75rem; border-radius: var(--border-radius); font-weight: 700; color: #fff; text-align: center; display: none; }
.contact-form .form-status.success { background-color: var(--success-color); display: block; }
.contact-form .form-status.error { background-color: var(--error-color); display: block; }

/* 8. FOOTER
   ========================================================================== */
.footer { background-color: #222; color: rgba(255,255,255,0.6); padding: 2rem 0; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-content p { margin: 0; }
.footer-content p a { color: rgba(255,255,255,0.8); font-weight: 700; text-decoration: none; }
.footer-content p a:hover { color: var(--secondary-color); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: rgba(255,255,255,0.7); border: 2px solid rgba(255,255,255,0.3); width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; transition: all var(--transition-speed) ease; }
.footer-social a svg { width: 1em; height: 1em; }
.footer-social a:hover { color: var(--primary-color); background-color: var(--secondary-color); border-color: var(--secondary-color); transform: translateY(-3px); }

/* 9. COOKIE BANNER
   ========================================================================== */
#cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: var(--primary-color); color: var(--light-text-color); padding: 1rem; display: flex; justify-content: center; align-items: center; z-index: 1500; transition: bottom var(--transition-speed) ease; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
#cookie-banner.show { bottom: 0; }
#cookie-banner p { margin: 0 1.5rem 0 0; }
.btn-cookie { padding: 0.5rem 1.5rem; background-color: var(--secondary-color); color: var(--primary-color); border: none; border-radius: var(--border-radius); cursor: pointer; text-transform: uppercase; font-weight: 700; }
.btn-cookie:hover { opacity: 0.9; }

/* 10. SEKCIJA ZA STATISTIKU
    ========================================================================== */
#statistika { padding: 80px 0; }
.stats-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; color: var(--light-text-color); }
.stat-item .stat-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1rem; line-height: 1; }
.stat-item .stat-icon svg { height: 1em; }
.stat-item .stat-number { font-family: var(--font-headings); font-size: 3.5rem; font-weight: 900; line-height: 1; }
.stat-item .stat-title { font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin-top: 0.5rem; color: var(--light-text-color); }

/* 11. GOOGLE MAPA U KONTAKTU
    ========================================================================== */
.map-container { margin-top: 4rem; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); line-height: 0; }
.map-container iframe { width: 100%; height: 450px; border: 0; }

/* 12. THANK YOU STRANICA
    ========================================================================== */
.thank-you-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--primary-color) 0%, #3f5874 100%); padding: 20px; font-family: var(--font-body); }
.thank-you-container { background-color: #fff; padding: 3rem; border-radius: var(--border-radius); box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center; max-width: 500px; width: 100%; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.success-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem; background-color: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.success-icon::before { content: '✓'; color: #fff; font-size: 2.5rem; font-weight: 900; }
.thank-you-container h1 { font-family: var(--font-headings); color: var(--primary-color); font-size: 2.5rem; margin-bottom: 1rem; }
.thank-you-container p { color: var(--text-color); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.thank-you-actions .btn { display: inline-block; }
.redirect-info { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: #777; }
.redirect-info p { margin: 0; }
.redirect-info .countdown { font-weight: 700; color: var(--primary-color); }

/* 13. "BACK TO TOP" STRELICA
    ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.back-to-top svg {
    width: 1em;
    height: 1em;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* 14. RESPONSIVE DIZAJN
    ========================================================================== */
@media (max-width: 992px) {
    .about-wrapper, .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .about-quote { margin-top: 2rem; }
    .contact-info { text-align: center; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section-padding { padding: 80px 0; }
    .nav-main { display: none; }
    .header-actions .language-switcher { display: none; }
    .hamburger { display: block; }
    .hero-title { font-size: 2.5rem; }
    .section-title h2 { font-size: 2.2rem; }
    .stats-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    #cookie-banner { flex-direction: column; gap: 1rem; text-align: center; }
    #cookie-banner p { margin: 0; }
    .stat-item .stat-number { font-size: 3rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .stat-item .stat-icon { font-size: 2.5rem; }
    .stat-item .stat-number { font-size: 2.5rem; }
    .stat-item .stat-title {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        word-break: break-word;
    }
}