/* ===== Brand colors: #bfd630 – profesionalna paleta ===== */
:root {
    --kvadratic-primary: #bfd630;
    --kvadratic-primary-dark: #9ab328;
    --kvadratic-primary-darker: #7d9220;
    --kvadratic-text: #1e293b;
    --kvadratic-text-muted: #64748b;
    /* Pozadine – blage zelene nijanse */
    --kvadratic-bg: #f5f8f0;
    --kvadratic-bg-section: #fafbf7;
    --kvadratic-bg-card: #f0f3eb;
}

/* Global links & titles */
a {
    color: var(--kvadratic-primary-darker);
}
a:hover,
a:focus {
    color: var(--kvadratic-primary-dark);
}

.title small {
    color: var(--kvadratic-primary-darker);
    font-weight: 600;
}

/* Buttons */
.btn_1,
a.btn_1 {
    background: var(--kvadratic-primary);
    color: #1e293b;
    border: 2px solid var(--kvadratic-primary);
}
.btn_1:hover,
a.btn_1:hover {
    background: var(--kvadratic-primary-dark);
    border-color: var(--kvadratic-primary-dark);
    color: #1e293b;
}

.btn_1.outline:not(.white),
a.btn_1.outline:not(.white) {
    border-color: var(--kvadratic-primary-darker);
    color: var(--kvadratic-primary-darker);
}
.btn_1.outline:not(.white):hover,
a.btn_1.outline:not(.white):hover {
    background: var(--kvadratic-primary-dark);
    border-color: var(--kvadratic-primary-dark);
    color: #fff;
}

/* Nav underline animation */
a.animated_link::before {
    background-color: var(--kvadratic-primary);
}
a.animated_link.active::before,
a.animated_link:hover::before {
    transform: scaleX(1);
}

/* Header sticky – blaga zelena nijansa */
header.fixed_header.sticky {
    background-color: rgba(30, 41, 59, 0.98);
}
header.fixed_header.sticky nav ul li a.btn_1 {
    background: var(--kvadratic-primary);
    color: #1e293b;
}
header.fixed_header.sticky nav ul li a.btn_1:hover {
    background: var(--kvadratic-primary-dark);
    color: #1e293b;
}

/* Glavni meni – transparentna pozadina (desktop) */
header.fixed_header .main-menu,
header.fixed_header .main-menu #mainNav,
header.fixed_header .main-menu #mainNav ul {
    background-color: transparent !important;
}

/* Linkovi u headeru – bela boja teksta (ne siva) */
header.fixed_header .main-menu #mainNav ul li a.animated_link,
header.fixed_header.sticky .main-menu #mainNav ul li a.animated_link {
    color: #fff !important;
}

/* Hamburger ikona – uvek bela */
header .hamburger_2 .hamburger__inner,
header .hamburger_2 .hamburger__inner::after,
header .hamburger_2 .hamburger__inner::before,
header.fixed_header.sticky .hamburger_2 .hamburger__inner,
header.fixed_header.sticky .hamburger_2 .hamburger__inner::after,
header.fixed_header.sticky .hamburger_2 .hamburger__inner::before {
    background-color: #fff !important;
}

/* Box facilities – ikone (slike) u sekciji O nama */
.box_facilities .box_facilities-icon {
    height: 75px;
    width: auto;
    max-width: 62px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.box_facilities.white .box_facilities-icon {
    filter: brightness(1.1);
}

/* Footer / copy – profesionalan tamni footer sa zelenim akcentom */
.copy {
    background-color: #1e293b;
    color: rgba(255, 255, 255, 0.85);
}
.copy a {
    color: var(--kvadratic-primary);
}
.copy a:hover {
    color: var(--kvadratic-primary-dark);
}

/* ===== Pozadinske boje – prilagođene brand zelenoj ===== */
body {
    background: var(--kvadratic-bg);
}
main {
    background-color: var(--kvadratic-bg);
}

.bg_white {
    background-color: var(--kvadratic-bg-section) !important;
}

/* Mobilni meni – pozadina panela samo na mobilnom */
.logo_panel {
    background-color: var(--kvadratic-bg-section) !important;
}

@media only screen and (max-width: 991px) {
    .main-menu {
        background-color: #fff !important;
    }
}

/* Kontakt forma – blaga zelena pozadina */
.contacts_wrapper {
    background-color: rgba(191, 214, 48, 0.06) !important;
}

/* Marque traka – diskretna zelena nijansa */
.marquee {
    background-color: var(--kvadratic-bg-section);
}
.marquee .content {
    color: var(--kvadratic-primary-darker);
}

/* Hero / carousel home */
#carousel-home,
#carousel-home .owl-carousel {
    position: relative;
}

#carousel-home .owl-carousel .owl-slide {
    height: 100vh;
    position: relative;
}

#carousel-home .static {
    position: static;
}

.background-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#carousel-home .cover {
    background-position: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    max-height: none !important;
    z-index: 2;
    opacity: 1 !important;
}

.opacity-mask {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.slide-text.white,
.slide-text.white h2 {
    color: #fff;
}

.slide-text small {
    text-transform: uppercase;
    color: var(--kvadratic-primary);
    letter-spacing: 4px;
    font-weight: 600;
    display: block;
    margin: 0 0 10px;
}

.slide-text h2,
.slide-text h3 {
    font-size: 3.1875rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Animacija teksta pri promeni slajda */
#carousel-home .owl-carousel .owl-slide-animated {
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: 50ms;
}

#carousel-home .owl-carousel .owl-slide-animated.is-transitioned {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: 0.5s;
}

#carousel-home .owl-carousel .owl-slide-title.is-transitioned {
    transition-delay: 0.2s;
}

#carousel-home .owl-carousel .owl-slide-title-2.is-transitioned {
    transition-delay: 0.4s;
}

#carousel-home .owl-carousel .owl-slide-title-3.is-transitioned {
    transition-delay: 0.6s;
}

/* Dugme */
.btn_1.outline.white {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    padding: 14px 25px;
    font-weight: 600;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn_1.outline.white:hover {
    background: var(--kvadratic-primary);
    border-color: var(--kvadratic-primary);
    color: #1e293b;
}

@media (max-width: 767px) {
    #carousel-home .owl-carousel .owl-slide {
        height: 90vh;
    }

    .slide-text h2,
    .slide-text h3 {
        font-size: 2.625rem;
    }
}

/* Gallery images - larger size */
#gallery .carousel_item_centered .item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* #rooms – sve slike u karuselima iste veličine */
#rooms .carousel_item_1 .item a,
#rooms .carousel_item_1 .item {
    display: block;
    overflow: hidden;
}
#rooms .carousel_item_1 .item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* O nama – hover animacija slika u parallax_wrapper */
#about .parallax_wrapper {
    overflow: visible; /* cela slika u .img_over mora biti vidljiva */
}
#about .parallax_wrapper > img.img-fluid.rounded-img {
    transition: transform 0.4s ease;
}
#about .parallax_wrapper:hover > img.img-fluid.rounded-img {
    transform: scale(1.04);
}
#about .parallax_wrapper .img_over img.rounded-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#about .parallax_wrapper .img_over:hover img.rounded-img {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Header logo - bolja vidljivost */
.fixed_header .logo_normal img,
.fixed_header .logo_sticky img {
    width: 220px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

/* Sticky logo – bela pozadina sa blagim radiusom */
header.fixed_header.sticky a.logo_sticky {
    display: inline-block;
    background-color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    line-height: 0;
}
header.fixed_header.sticky a.logo_sticky img {
    display: block;
}

.main-menu .logo_panel img {
    width: 240px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.main-menu .logo_panel {
    padding: 0.5rem 0 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Contact section heading */
.contacts_wrapper .contacts_heading {
    margin: 0 0 1.25rem;
    font-size: 1.75rem;
    font-weight: 600;
}

/* Form focus – zelena granica */
.form-control:focus {
    border-color: var(--kvadratic-primary);
    box-shadow: 0 0 0 0.2rem rgba(191, 214, 48, 0.2);
}

/* Karusel tačkice – aktivna u brand boji */
#carousel-home .owl-theme .owl-dots .owl-dot.active span,
#carousel-home .owl-theme .owl-dots .owl-dot:hover span {
    border-color: var(--kvadratic-primary) !important;
}
#carousel-home .owl-theme .owl-dots .owl-dot.active span::before,
#carousel-home .owl-theme .owl-dots .owl-dot:hover span::before {
    background-color: var(--kvadratic-primary) !important;
}

/* Mobilni meni – aktivni/hover link u zelenoj */
.main-menu #mainNav ul li a.active,
.main-menu #mainNav ul li a:hover {
    color: var(--kvadratic-primary) !important;
}

/* Kontakt – ikone i broj/email u brand boji */
.phone_element a i,
.phone_element a span {
    color: var(--kvadratic-primary-darker);
}
.phone_element a:hover i,
.phone_element a:hover span {
    color: var(--kvadratic-primary-dark);
}

/* ===== Real estate listing section (#usluge) – premium redesign ===== */

.usluge-section-wrapper {
    --usluge-card-radius: 14px;
    --usluge-accent: var(--kvadratic-primary-darker);
    --usluge-text: #1e293b;
    --usluge-text-muted: #64748b;
    background: var(--kvadratic-bg);
    padding: 5rem 0 5.5rem;
}

#usluge .title small {
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.8125rem;
}

#usluge .title h2 {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.nekretnina-sekcija .title small {
    color: #6b7280;
}

.nekretnina-sekcija .title h2 {
    font-size: 1.75rem;
    color: #1e293b;
}

.nekretnina-sekcija {
    margin-bottom: 4rem;
}

.nekretnina-sekcija:last-of-type {
    margin-bottom: 0;
}

#usluge .more_margin {
    margin-top: 4rem;
    margin-bottom: 4rem;
    border: 0;
    border-top: 1px solid rgba(30, 41, 59, 0.08);
}

/* Cards */
.nekretnina-card {
    background: #fff;
    border-radius: var(--usluge-card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nekretnina-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.nekretnina-card-img-wrap {
    position: relative;
    padding-top: 78%;
    overflow: hidden;
    background: var(--kvadratic-bg-card);
    border-radius: var(--usluge-card-radius) var(--usluge-card-radius) 0 0;
}

.nekretnina-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nekretnina-card:hover .nekretnina-card-img-wrap img {
    transform: scale(1.06);
}

/* Pill-style badges */
.nekretnina-badge-kvadratic,
.nekretnina-badge-tip {
    position: absolute;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 9999px;
    line-height: 1;
}

.nekretnina-badge-kvadratic {
    top: 14px;
    left: 14px;
    background: rgba(30, 41, 59, 0.85);
    color: #fff;
    backdrop-filter: blur(6px);
}

.nekretnina-badge-tip {
    top: 14px;
    right: 14px;
    background: var(--usluge-accent);
    color: #fff;
    backdrop-filter: blur(6px);
}

.nekretnina-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    padding: 1.25rem 1.25rem 0.5rem;
    color: var(--usluge-text);
    flex-grow: 1;
}

.nekretnina-card-details {
    margin: 0 1.25rem;
    padding: 0.75rem 0 0;
    color: var(--usluge-accent);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.nekretnina-card-link {
    display: block;
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--usluge-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    border-top: 1px solid rgba(30, 41, 59, 0.06);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.nekretnina-card-link:hover {
    color: var(--usluge-accent);
}

/* Nekretnina info unutar #rooms .box_item_info */
#rooms .box_item_info .nekretnina-card-details {
    margin: 0 0 1rem 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kvadratic-primary-darker);
}

#rooms .box_item_info .nekretnina-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid #ededed;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--kvadratic-primary-darker);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, gap 0.2s ease;
}

#rooms .box_item_info .nekretnina-card-link::after {
    content: "→";
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

#rooms .box_item_info .nekretnina-card-link:hover {
    color: var(--kvadratic-primary-dark);
}

#rooms .box_item_info .nekretnina-card-link:hover::after {
    transform: translateX(4px);
}

/* Primary CTA */
.usluge-cta-wrap {
    text-align: center;
    margin-top: 3.5rem;
}

.usluge-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    background: var(--kvadratic-primary);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
}

.usluge-cta-btn:hover {
    background: var(--kvadratic-primary-dark);
    color: #1e293b;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .usluge-section-wrapper {
        padding: 3.5rem 0 4rem;
    }

    .nekretnina-sekcija {
        margin-bottom: 3rem;
    }

    #usluge .more_margin {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .usluge-cta-wrap {
        margin-top: 2.5rem;
    }
}

@media (max-width: 575px) {
    .usluge-section-wrapper {
        padding: 2.5rem 0 3rem;
    }

    #usluge .title h2 {
        font-size: 1.75rem;
    }

    .nekretnina-sekcija .title h2 {
        font-size: 1.5rem;
    }

    .nekretnina-card-details {
        font-size: 1rem;
    }

    .usluge-cta-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* ===== Why Choose Us – two images like #about (parallax_wrapper + img_over) ===== */
#why-choose-us .parallax_wrapper {
    overflow: visible;
}
#why-choose-us .parallax_wrapper > img.img-fluid.rounded-img {
    transition: transform 0.4s ease;
}
#why-choose-us .parallax_wrapper:hover > img.img-fluid.rounded-img {
    transform: scale(1.04);
}
#why-choose-us .parallax_wrapper .img_over img.rounded-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#why-choose-us .parallax_wrapper .img_over:hover img.rounded-img {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us – content block: professional hierarchy & spacing */
.why-choose-us__content {
    padding: 1.5rem 0;
    max-width: 32rem;
}

.why-choose-us__content .title {
    margin-bottom: 1.25rem;
}

.why-choose-us__content .title small {
    color: var(--kvadratic-primary-darker);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.why-choose-us__content .title h2 {
    color: var(--kvadratic-text);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.why-choose-us__content .lead {
    color: var(--kvadratic-text-muted);
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.why-choose-us__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-us__list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--kvadratic-text);
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.why-choose-us__list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.why-choose-us__list li i {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kvadratic-primary-darker);
    background: rgba(191, 214, 48, 0.12);
    border-radius: 8px;
    font-size: 1.125rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.why-choose-us__list li:hover i {
    background: rgba(191, 214, 48, 0.2);
    color: var(--kvadratic-primary-dark);
}

.why-choose-us__list li span {
    flex: 1;
}

@media (max-width: 767px) {
    .why-choose-us__content {
        padding: 1rem 0;
    }

    .why-choose-us__content .title h2 {
        font-size: 1.625rem;
    }

    .why-choose-us__content .lead {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .why-choose-us__list li {
        font-size: 0.875rem;
        gap: 0.875rem;
        padding: 0.4rem 0;
    }

    .why-choose-us__list li i {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}