/********** Gipsani Radovi CG — Template CSS **********/
/* Paleta iz logotipa: topli antracit #26211E + terakota #C05A34 + topla bijela */

:root {
    --primary: #26211E;        /* topli antracit — glavni brend (okvir i tekst logotipa) */
    --primary-dark: #1A1613;   /* tamniji antracit (footer/topbar/overlay) */
    --accent: #C05A34;         /* terakota / rđa — akcenat (kvadrat u logotipu) */
    --accent-dark: #A8482A;    /* tamnija terakota (tekst na bijelom) */
    --secondary: #C05A34;
    --light: #F6F2EC;          /* topla off-white */
    --dark: #26211E;
    --body: #4A4540;
}

html, body {
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--body);
    background: #fff;
    /* clip sprječava horizontalni skrol ali NE razbija position: sticky (za razliku od hidden) */
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Roboto Slab', serif;
    color: var(--primary);
    font-weight: 700;
}

.brand-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    font-family: 'Roboto Slab', serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--primary);
    line-height: 1.05;
    white-space: nowrap;
}

.brand-title .brand-sub {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: .6rem;
    letter-spacing: .34em;
    font-weight: 500;
    color: var(--accent-dark);
    margin-top: 3px;
}

.navbar-logo {
    display: block;
    width: auto;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    margin-right: .5rem;
}

/* Eyebrow / oznaka sekcije */
.eyebrow {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: .75rem;
}

.eyebrow.on-dark { color: var(--accent); }

.text-accent { color: var(--accent-dark) !important; }
.text-accent-gold { color: var(--accent) !important; }

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.extraIcon {
    background-color: var(--primary) !important;
    padding: 6px;
    border-radius: 50%;
}

.service-item .imgExtra {
    min-height: 238px;
    object-fit: cover;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .4s;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    border-radius: 4px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #fff;
}

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

.btn.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

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

/* Terakota dugme (akcenat) */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-viber {
    background-color: #7360F2;
    border-color: #7360F2;
    color: #fff;
}
.btn-viber:hover { background-color: #5b48d8; border-color: #5b48d8; color: #fff; }

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    max-width: 100%;
    min-width: 0;
}

.navbar .navbar-brand img {
    max-height: none;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 10px 0;
    color: var(--primary);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--accent-dark);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img { max-height: none; }
    .brand-title { font-size: 1.2rem; }
    .navbar-logo { height: 42px; }
    .navbar .navbar-nav { margin-top: 20px; margin-bottom: 15px; }
    .navbar .nav-item .dropdown-menu { padding-left: 30px; }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent !important;
    color: var(--accent-dark) !important;
}
.dropdown-item:hover { color: var(--accent-dark); }


/*** Header / Hero ***/
.hero {
    position: relative;
    background:
        linear-gradient(rgba(26,22,19,.82), rgba(26,22,19,.9)),
        url(../img/gipsarski_radovi_6.webp) center center / cover no-repeat;
    background-color: var(--primary);
}

.hero .hero-inner { padding: 7rem 0; }

@media (max-width: 768px) {
    .hero .hero-inner { padding: 4.5rem 0; }
}

.hero h1 { color: #fff; }
.hero .accent-line {
    width: 70px; height: 3px; background: var(--accent);
    margin-bottom: 1.5rem;
}
.hero-usp li {
    color: rgba(255,255,255,.92);
    margin-bottom: .6rem;
    list-style: none;
}
.hero-usp { padding-left: 0; }
.hero-usp i { color: var(--accent); margin-right: .6rem; }

.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: rgba(26, 22, 19, .82);
    z-index: 1;
}

.page-header {
    background: linear-gradient(rgba(26,22,19,.85), rgba(26,22,19,.9)), url(../img/gipsarski_radovi_6.webp) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before { color: var(--light); }

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active { color: var(--accent); }


/*** Facts / CTA band ***/
.facts { background: linear-gradient(rgba(26,22,19,.9), rgba(26,22,19,.9)); }

.cta-band {
    background: var(--primary);
    color: #fff;
}
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4, .cta-band h5, .cta-band h6 { color: #fff; }


/*** Sekcije: cjenovnik / kartice ***/
.price-card {
    background: #fff;
    border: 1px solid #ececec;
    border-top: 3px solid var(--accent);
    transition: .3s;
}
.price-card:hover {
    box-shadow: 0 12px 30px rgba(38,33,30,.12);
    transform: translateY(-4px);
}
.price-value {
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    color: var(--primary);
}
.price-unit { color: var(--accent-dark); font-weight: 600; }

.price-table thead th {
    background: var(--primary);
    color: #fff;
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    border-color: var(--primary);
}
.price-table td, .price-table th { vertical-align: middle; }
.price-table tbody tr:nth-child(odd) { background: var(--light); }


/*** Service ***/
.service-item {
    border: 1px solid #ececec;
    background: #fff;
    transition: .3s;
    height: 100%;
}
.service-item:hover {
    box-shadow: 0 12px 30px rgba(38,33,30,.12);
}
.service-item .service-icon {
    width: 78px; height: 78px;
    display: flex; align-items: center; justify-content: center;
}
.service-item .service-icon i { font-size: 1.6rem; color: #fff; }
.service-item a.h4 { color: var(--primary); }
.service-item a.h4:hover { color: var(--accent-dark) !important; }

.feature-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--light);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-dark); font-size: 1.4rem;
    flex: 0 0 auto;
}


/*** Proces koraci ***/
.step-num {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Roboto Slab', serif;
    font-weight: 800; font-size: 1.3rem;
    flex: 0 0 auto;
}


/*** Galerija ***/
.gallery-img {
    overflow: hidden; border-radius: 6px;
}
.gallery-img img {
    width: 100%; height: 260px; object-fit: cover;
    transition: transform .5s;
}
.gallery-img:hover img { transform: scale(1.06); }


/*** FAQ ***/
.accordion-button:not(.collapsed) {
    background: var(--light);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--accent); }
.accordion-button { font-family: 'Roboto Slab', serif; font-weight: 600; color: var(--primary); }


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote { max-width: 100% !important; }
    .container.quote .quote-text { padding-left: calc(((100% - 960px) / 2) + .75rem); }
    .container.quote .quote-form { padding-right: calc(((100% - 960px) / 2) + .75rem); }
}
@media (min-width: 1200px) {
    .container.quote .quote-text { padding-left: calc(((100% - 1140px) / 2) + .75rem); }
    .container.quote .quote-form { padding-right: calc(((100% - 1140px) / 2) + .75rem); }
}
@media (min-width: 1400px) {
    .container.quote .quote-text { padding-left: calc(((100% - 1320px) / 2) + .75rem); }
    .container.quote .quote-form { padding-right: calc(((100% - 1320px) / 2) + .75rem); }
}
.container.quote .quote-text { background: rgba(26, 22, 19, .9); }
.container.quote .quote-form { background: rgba(255, 255, 255, .95); }
.container.quote .quote-text .h-100,
.container.quote .quote-form .h-100 {
    padding: 5rem 0;
    display: flex; flex-direction: column; justify-content: center;
}


/*** Footer ***/
.footer {
    background: var(--primary-dark) !important;
    color: #B7ADA4;
}
.footer h5 { color: #fff; }
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B7ADA4;
    font-weight: normal;
    text-transform: none;
    transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent);
    margin-right: 10px;
}
.footer .btn.btn-link:hover { color: #fff; letter-spacing: 1px; box-shadow: none; }
.footer .btn.btn-square { color: #B7ADA4; border: 1px solid #4a423c; }
.footer .btn.btn-square:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.footer .copyright { padding: 25px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer a { color: #B7ADA4; }
.footer p a { color: #fff; }
.footer p a:hover { color: var(--accent); }
.footer .copyright a { color: var(--accent); }
.footer .copyright a:hover { color: #fff; }


/*** Boje – override Bootstrap ***/
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-navy { background-color: var(--primary) !important; }
.bg-light { background-color: var(--light) !important; }
.border-accent { border-color: var(--accent) !important; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--primary); }

.telephone { color: #fff; }
.telephone:hover { color: var(--accent) !important; }
.colorWhite { color: #fff; }
.blackColor { color: var(--primary); }

.topbar-link { color: rgba(255,255,255,.75); }
.topbar-link:hover { color: var(--accent) !important; }


/*** Mobile sticky CTA ***/
.mobile-cta a.cta-call { background: var(--primary) !important; }
.mobile-cta a.cta-viber { background: #7360F2 !important; }
.mobile-cta a.cta-wa { background: #25D366 !important; }

/* zbog fiksne mobilne CTA trake — prostor na dnu da ne prekrije footer */
@media (max-width: 991.98px) {
    body { padding-bottom: 56px; }
}

/* Na malim ekranima hero/CTA dugmad idu na punu širinu (bez horizontalnog preljeva) */
@media (max-width: 575.98px) {
    .hero .btn,
    .cta-band .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}
