/* ==========================================================================
   1. DEFINICIJA PROMENLJIVIH I BAZNI STILOVI
   ========================================================================== */
:root {
    --primary-color: #0d6efd;       
    --primary-dark: #0a58ca;        
    --primary-light: #e7f1ff;       
    --secondary-color: #dc3545;     
    --secondary-dark: #b02a37;
    --text-color: #212529;          
    --text-muted: #4f4f4f;          
    --bg-light: #f8f9fa;            
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    --max-width: 1200px;
    --transition-speed: 0.3s;
}

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-white);
}

ul {
    list-style: none;
}

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

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

a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    z-index: 10000;
    transition: top 0.2s;
}

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

/* ==========================================================================
   2. VIŠEKRATNE KOMPONENTE (Grid, Kontejner, Dugmići)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #d0e3ff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3. ZAGLAVLJE I NAVIGACIJA (Flexbox)
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
}

.logo a {
    color: var(--text-color);
}

.logo-accent {
    color: var(--primary-color);
}

.main-navigation {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    outline: none;
}

.phone-highlight {
    background-color: var(--secondary-color);
    color: var(--bg-white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.phone-highlight:hover,
.phone-highlight:focus {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.phone-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   4. HERO SEKCIJA (Flexbox)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,1) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1e21;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. USLUGE SEKCIJA (Flexbox raspored kartica)
   ========================================================================== */
.services-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--bg-white);
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 280px;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    flex-grow: 1;
}

/* ==========================================================================
   6. BRENDOVI SEKCIJA (Flexbox)
   ========================================================================== */
.brands-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.brands-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease, color var(--transition-speed) ease;
}

.brand-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* ==========================================================================
   7. SIMPTOMI KVAROVA
   ========================================================================== */
.symptoms-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.symptoms-container {
    display: flex;
    justify-content: center;
}

.symptoms-content {
    max-width: 800px;
    width: 100%;
}

.symptoms-list {
    background-color: var(--bg-white);
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.symptoms-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.symptoms-list li:last-child {
    margin-bottom: 0;
}

.symptoms-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================================================
   8. FUTER SA KONTAKT DETALJIMA I LOGOTIPOM (Bez forme)
   ========================================================================== */
.site-footer {
    background-color: #1a1e21; 
    color: #e9ecef;
    padding: 5rem 0 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
    padding-bottom: 4rem;
}

.footer-info, .footer-additional {
    flex: 1 1 calc(50% - 2rem);
    min-width: 320px;
}

.footer-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.footer-info p {
    color: #adb5bd;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-details strong {
    color: var(--bg-white);
}

.footer-link {
    color: #adb5bd;
    border-bottom: 1px dashed #adb5bd;
}

.footer-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

.phone-link-footer {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bg-white);
}

.phone-link-footer:hover {
    color: var(--primary-light);
}

/* Radno Vreme u Futeru */
.working-hours-card {
    background-color: #212529;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #2d3238;
    margin-bottom: 1.5rem;
}

.working-hours-card h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #2d3238;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list span {
    color: #adb5bd;
}

.company-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Chilly Willy Logo Pozicioniranje */
.footer-logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1.5rem;
}

.footer-logo {
    max-width: 150px; /* Optimalna širina za logo */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5)); /* Blaga senka za bolji izgled na tamnoj pozadini */
}

/* Donji završni deo futera */
.footer-bottom {
    background-color: #0f1112;
    padding: 1.5rem 0;
    border-top: 1px solid #2d3238;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   9. RESPONSIVE / PRILAGOĐAVANJE EKRANIMA (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .header-container {
        height: auto;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-logo-container {
        justify-content: center; /* Centriranje na mobilnim ekranima */
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}