﻿/* 
   Dizajnerski sistem za Čisto Odgušenje
   Boje: Bela, Tamno plava/Grafitna, Akcent Zelena
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-soft: #d1fae5;
    --bg-white: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --danger: #ef4444;
    --border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 80px;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Utilities */
.section { padding: var(--section-padding) 0; }
.section-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }
.accent-text { color: var(--accent); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Header */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--accent); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.trust-bullet i {
    color: var(--accent);
    font-size: 1.2rem;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Problem Cards */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 640px) {
    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* Services */
.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .service-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .service-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-item {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

/* Sticky Mobile CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none; /* Desktop hidden */
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    padding: 10px 8px;
    font-size: 0.85rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
    transition: bottom 0.5s ease;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent p {
    font-size: 0.9rem;
    margin-right: 20px;
}

.cookie-consent .btn {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-alt);
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-grid { gap: 40px; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-links, .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .trust-bullets { justify-content: center; }

    /* Uvek prikazati tekst pre slike na mobilnom, bez obzira na DOM redosled */
    .hero-grid .hero-content { order: 1; }
    .hero-grid .hero-image { order: 2; }
    
    .sticky-cta { display: grid; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    
    body { padding-bottom: 80px; } /* Space for sticky cta */
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }
}

/* Lenis Smooth Scroll Base */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
/* Visibility Utilities */
.desktop-only { display: inline; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline !important; }
}