/* ==========================================================================
   Klima S Sistem - components.css
   UI Komponente: Header, Hero, Kartice, Duge, Brendovi, Galerija, CTA, Footer
========================================================================== */

/* 1. HEADER & NAVIGACIJA */
.header {
    background-color: var(--color-white, #ffffff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav__list {
    list-style: none;
    gap: 2rem;
}

.nav__list a {
    text-decoration: none;
    color: var(--color-text, #333333);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav__list a:hover,
.nav__list a.active {
    color: var(--color-primary, #0056b3);
}

.nav__list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary, #0056b3);
}

.header-phone {
    text-decoration: none;
    color: var(--color-primary, #0056b3);
    font-weight: 700;
    font-size: 1.1rem;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.header-phone:hover {
    background-color: rgba(0, 86, 179, 0.15);
}

.hamburger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text, #333);
    border-radius: 2px;
}

/* 2. HERO SEKCIJA */
.home-hero {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 6rem 0;
    height: 450px;
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-block;
    background-color: var(--color-primary, #0056b3);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
}

.hero__content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.92;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
}

.home-hero span {
    color: #ffffff !important;
}

/* 3. DUGMAD (BUTTONS) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-primary, #0056b3);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--color-primary-dark, #004085);
    color: #ffffff;
}

.btn--secondary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn--secondary:hover {
    background-color: #ffffff;
    color: var(--color-text, #333333);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--color-primary, #0056b3);
    color: var(--color-primary, #0056b3);
}

.btn--outline:hover {
    background-color: var(--color-primary, #0056b3);
    color: #ffffff;
}

.btn--large {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* 4. FEATURE BOXES & CARDS */
.feature-box {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.feature-box__icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.card {
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
}

.card__title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-text, #222);
}

.card__text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.card__link {
    color: var(--color-primary, #0056b3);
    text-decoration: none;
    font-weight: 600;
}

.card__link:hover {
    text-decoration: underline;
}

/* 5. BRENDOVI & GALERIJA */
.section--brands {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.brand-logo {
    flex-wrap: wrap;
    max-height: 45px;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 6. CTA SEKCIJA */
.cta {
    background-color: var(--color-primary, #0056b3);
    color: #ffffff;
    padding: 4.5rem 0;
}

.cta__title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.cta__text {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* 7. FOOTER */
.footer {
    background-color: #1a1e24;
    color: #b0b7c3;
    padding-top: 4rem;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.footer__links,
.footer__contact {
    list-style: none;
    padding: 0;
}

.footer__links li,
.footer__contact li {
    margin-bottom: 0.75rem;
}

.footer__links a,
.footer__contact a {
    color: #b0b7c3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: #ffffff;
}

.footer__bottom {
    margin-top: 3.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.footer-credit a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}
.social-icon-header {
    font-size: 1.3rem;
    text-decoration: none;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-icon-header:hover {
    transform: scale(1.1);
}
/* Zvanične boje i stilovi za društvene mreže i Viber */
.social-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Hover efekti sa prepoznatljivim bojama brendova */
.social-icon-link.viber:hover { background-color: #7360f2; color: #fff; }
.social-icon-link.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #df5945 45%, #c62965 60%, #8424be 90%); color: #fff; }
.social-icon-link.facebook:hover { background-color: #1877f2; color: #fff; }


/* ==========================================================================
   Animacija za tekst u Hero sekciji pri učitavanju stranice
========================================================================== */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(25px); /* Počinje malo niže */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Dolazi na svoju poziciju */
    }
}

/* Primenjujemo animaciju na sadržaj hero sekcije */
.home-hero .hero__content {
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}