/*
Theme Name: ROAD HR Custom Theme
Theme URI: https://websalty.com
Author: Websalty
Author URI: https://websalty.com
Description: Premium B2B HR Consulting custom theme for ROAD HR.
Version: 1.1
Text Domain: roadhr
*/

/* ─── 1. GLOBALNE VARIJABLE ─── */
:root {
  --purple: #6c3287;
  --purple-dark: #521f6b;
  --purple-light: #f5eff8;
  --purple-mid: #e8d8f0;
  --green: #10b981;
  --green-light: #ecfdf5;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --white: #ffffff;
  --gray-50: #fbfbfd;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  
  --font: 'Plus Jakarta Sans', sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

/* ─── 2. RESET I BAZA ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ─── 3. GLOBALNE KOMPONENTE (Dugmići, Labele, Naslovi) ─── */
/* Dugmići */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 0.9rem; font-weight: 700; padding: 14px 28px; border-radius: var(--r-sm); cursor: pointer; transition: var(--transition); border: 1px solid transparent; letter-spacing: 0.01em; text-align: center;}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(108,50,135,0.25); }
.btn-secondary { background: var(--white); color: var(--dark); border-color: var(--gray-200); }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* Labele (Bedževi) */
.label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; }
.label-purple { background: var(--purple-light); color: var(--purple); }
.label-green { background: var(--green-light); color: var(--green); }
.label-gray { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }
.label-white { background: rgba(255,255,255,0.15); color: var(--white); backdrop-filter: blur(4px);}

/* Standardni Sekcijski Naslovi */
.sec-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.sec-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--purple); border-radius: 2px; }
.sec-h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--dark); letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px;}
.sec-sub { font-size: 1.1rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 0; max-width: 700px; }

/* ─── 4. HEADER & NAVIGACIJA ─── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.3s; }
header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.nav { display: flex; align-items: center; height: 80px; justify-content: space-between; }

.logo { display: inline-block; transition: var(--transition); }
.logo:hover { opacity: 0.85; }
.logo img { height: auto; max-height: 60px; width: auto; display: block; }

/* Desktop Meni */
nav.main { display: flex; align-items: center; gap: 24px; }
nav.main > a { font-weight: 700; font-size: 0.95rem; color: var(--dark); transition: var(--transition); }
nav.main > a:hover { color: var(--purple); }

.nav-drop-wrap { position: relative; display: flex; align-items: center; height: 100%; padding: 28px 0; cursor: pointer; }
.nav-drop-wrap > a { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; color: var(--dark); transition: var(--transition); }
.nav-drop-wrap:hover > a { color: var(--purple); }
.nav-drop-wrap svg { width: 14px; height: 14px; transition: transform 0.3s ease; margin-top: 2px;}
.nav-drop-wrap:hover svg { transform: rotate(180deg); }

.nav-dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid var(--gray-200); border-radius: var(--r-sm); padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); display: flex; flex-direction: column; z-index: 100; }
.nav-drop-wrap:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { padding: 10px 24px; font-size: 0.9rem; font-weight: 600; color: var(--gray-600); transition: var(--transition); }
.nav-dropdown a:hover { color: var(--purple); background: var(--gray-50); padding-left: 28px; }

/* Header Akcije */
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; background: var(--gray-100); border-radius: 8px; padding: 4px; gap: 2px; }
.lang-btn { font-size: 0.75rem; font-weight: 800; padding: 6px 12px; border: none; background: transparent; color: var(--gray-400); cursor: pointer; border-radius: 6px; transition: var(--transition); }
.lang-btn.active { background: var(--white); color: var(--purple); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

/* Hamburger (Mobilni) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* Mobilni Meni */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--dark); z-index: 499; flex-direction: column; padding: 100px 28px 40px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-nav.open { opacity: 1; pointer-events: all; display: flex; }
.mob-nav-item { border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
.mob-nav-link { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; font-size: 1.2rem; font-weight: 700; color: var(--white); border: none; background: transparent; text-align: left; cursor: pointer; }
.mob-nav-link svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.mob-nav-item.active .mob-nav-link svg { transform: rotate(180deg); }
.mob-dropdown { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; display: flex; flex-direction: column; }
.mob-nav-item.active .mob-dropdown { max-height: 500px; }
.mob-drop-link { padding: 12px 0 12px 20px; font-size: 1rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.mob-drop-link:hover { color: var(--white); }

/* ─── 5. GLOBALNI FOOTER ─── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 100px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: -50%; left: -10%; width: 50%; height: 100%; background: radial-gradient(circle, rgba(162, 89, 255, 0.05) 0%, transparent 70%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; position: relative; z-index: 2; }
.f-brand .f-logo-img { max-height: 55px; margin-bottom: 24px; filter: brightness(0) invert(1); display: block; }
.f-brand p { font-size: 1rem; line-height: 1.7; margin-bottom: 32px; color: rgba(255,255,255,0.6); max-width: 320px; }
.f-socials { display: flex; gap: 12px; }
.f-socials a { width: 44px; height: 44px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.f-socials a:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-4px); }
.f-col h4 { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 24px; letter-spacing: 0.5px; }
.f-col ul { padding: 0; margin: 0; }
.f-col li { margin-bottom: 12px; }
.f-col a { color: rgba(255,255,255,0.6); font-size: 0.95rem; transition: var(--transition); }
.f-col a:hover { color: var(--white); transform: translateX(6px); display: inline-block;}
.f-contact-info p { display: flex; align-items: flex-start; gap: 16px; font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.f-contact-info svg { width: 20px; height: 20px; color: var(--purple-light); flex-shrink: 0; margin-top: 2px;}
.f-newsletter input { width: 100%; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--white); margin-bottom: 12px; }
.f-newsletter input:focus { border-color: var(--purple); }
.f-newsletter button { width: 100%; padding: 14px; border-radius: 8px; border: none; background: var(--purple); color: var(--white); font-weight: 700; cursor: pointer; transition: var(--transition); }
.f-newsletter button:hover { background: var(--white); color: var(--dark); }
.footer-sub { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: rgba(255,255,255,0.5); position: relative; z-index: 2; }
.footer-legal { display: flex; gap: 32px; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* ─── 6. GLOBALNI MAIN CTA (PURPLE) ─── */
.unified-main-cta { 
    background: var(--purple) !important; 
    color: var(--white) !important; 
    padding: 100px 0 !important; 
    position: relative; 
    z-index: 20; 
    overflow: hidden;
}

/* Suptilni ROAD logo watermark u pozadini */
.unified-main-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: url('assets/images/road-mark.png') no-repeat center center;
    background-size: contain;
    opacity: 0.08; /* Blago vidljivo da ne ometa tekst */
    pointer-events: none;
    transform: rotate(15deg);
    z-index: 0;
}

.cta-full-width-grid { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 40px; 
    position: relative;
    z-index: 1; /* Da tekst i dugme budu iznad watermarka */
}

.cta-text-left h3 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: var(--white) !important; 
    margin: 0 0 12px 0; 
    letter-spacing: -0.5px; 
}

.cta-text-left p { 
    font-size: 1.1rem; 
    color: rgba(255, 255, 255, 0.85) !important; 
    margin: 0; 
    line-height: 1.6; 
    max-width: 600px;
}

/* Prilagođavanje za mobilne uređaje */
@media (max-width: 768px) {
    .cta-full-width-grid { flex-direction: column; text-align: center; }
    .cta-text-left { text-align: center; }
    .unified-main-cta .btn { width: 100%; justify-content: center; }
    .unified-main-cta::before { 
        top: auto;
        bottom: -20%;
        right: -20%; 
        width: 400px; 
        height: 400px; 
        opacity: 0.05;
    }
}

/* ─── 7. ANIMACIJE (REVEAL) ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ─── 8. RESPONSIVE BAZA ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
@media (max-width: 992px) {
  nav.main, .nav-actions .btn-nav { display: none; }
  .hamburger { display: flex; }
  .logo img { max-height: 48px; }
}
@media (max-width: 768px) {
  .site-footer { padding: 80px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 50px; margin-bottom: 50px;}
  .footer-sub { flex-direction: column; text-align: center; gap: 20px;}
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 20px;}
  .cta-full-width-grid { flex-direction: column; text-align: center; }
  .cta-text-left { text-align: center; }
  .unified-black-cta-section .btn { width: 100%; justify-content: center; }
}