/* ==========================================================================
   ОГНОПРЕВЕНТ-ИНЖЕНЕРИНГ — тема на сајтот
   Палета земена од логото и презентацијата на клиентот:
   црвена (акција/аларм), зелена (безбедност/сообразност), тиркизна (доверба).
   Слој врз Bootstrap 5.3.
   ========================================================================== */

:root {
    --red:        #ED1B24;
    --red-dark:   #c5141c;
    --green:      #00A652;
    --green-dark: #008a44;
    --ink:        #231F20;
    --teal:       #167C85;
    --teal-dark:  #106067;
    --teal-mid:   #409BA3;
    --teal-light: #C9E7EA;
    --teal-wash:  #F2F9FA;

    --body:       #3d4854;
    --muted:      #6c7a89;
    --line:       #e3e8ec;
    --bg-soft:    #f5f7f9;
    --white:      #ffffff;

    --radius:     10px;
    --shadow-sm:  0 1px 3px rgba(35,31,32,.07), 0 1px 2px rgba(35,31,32,.04);
    --shadow:     0 4px 16px rgba(35,31,32,.08);
    --shadow-lg:  0 12px 34px rgba(35,31,32,.13);
    --head-font:  "Barlow Condensed", "Inter", sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--body);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
main, .page-main { flex: 1 0 auto; }

h1, h2, h3, h4, .h1, .h2, .h3 {
    font-family: var(--head-font);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.18; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

/* ---------- Копчиња ---------- */
.btn { border-radius: 6px; font-weight: 600; padding: .62rem 1.35rem; border: 2px solid transparent; transition: all .16s ease; }
.btn-brand { background: var(--red); border-color: var(--red); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(237,27,36,.28); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline-brand { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline-brand:hover { background: var(--red); color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: .82rem 1.9rem; font-size: 1.02rem; }

/* ---------- Лента над заглавието ---------- */
.pre-header { background: var(--ink); color: rgba(255,255,255,.82); font-size: 13px; padding: 8px 0; }
.pre-header .material-icons { font-size: 16px; vertical-align: -3px; margin-right: 6px; color: var(--green); }
.pre-header .ph-link { color: rgba(255,255,255,.82); white-space: nowrap; }
.pre-header .ph-link:hover { color: #fff; }
.pre-header .ph-link .material-icons { color: var(--teal-mid); }
.contact-icons { display: inline-flex; align-items: center; gap: 9px; }
.contact-ic { display: inline-flex; color: #fff !important; }
.contact-ic i { font-size: 16px; }
.contact-ic:hover { opacity: .8; }

/* ---------- Навигација ---------- */
.main-nav { background: #fff; box-shadow: var(--shadow-sm); padding: .55rem 0; border-bottom: 3px solid var(--teal); }
.main-nav .navbar-brand img { height: 46px; width: auto; }
.main-nav .nav-link {
    color: var(--ink); font-weight: 600; font-size: 15px; padding: .55rem .95rem !important;
    position: relative; text-transform: uppercase; letter-spacing: .3px;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--red); }
.main-nav .nav-link::after {
    content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem;
    height: 2px; background: var(--red); transform: scaleX(0); transition: transform .18s ease;
}
.main-nav .nav-link:hover::after { transform: scaleX(1); }
.main-nav .dropdown-toggle::after { vertical-align: .15em; }
.navbar-toggler { border: 0; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Мега-мени со категории */
.mega-menu { border: 0; border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 1.35rem; min-width: 620px; }
.mega-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.8rem; }
.mega-col .mega-head { display: block; font-family: var(--head-font); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; color: var(--ink); padding-bottom: .4rem; margin-bottom: .45rem; border-bottom: 1px solid var(--line); }
.mega-col .mega-head:hover { color: var(--red); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: .24rem 0; font-size: 14px; color: var(--body); }
.mega-col li a::before { content: '›'; color: var(--teal-mid); margin-right: 7px; font-weight: 700; }
.mega-col li a:hover { color: var(--red); }
@media (max-width: 991.98px) {
    .mega-menu { min-width: 100%; padding: 1rem; box-shadow: none; border-top: 0; }
    .mega-cols { grid-template-columns: 1fr; }
    .main-nav .nav-link::after { display: none; }
}

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section.teal { background: var(--teal); color: #fff; }
.section.teal h2, .section.teal h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .eyebrow {
    display: inline-block; font-weight: 700; font-size: 12.5px; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head h2::after {
    content: ''; display: block; width: 62px; height: 3px; background: var(--red);
    margin: 16px auto 0; border-radius: 3px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.section.teal .section-head .eyebrow { color: var(--teal-light); }
.section.teal .section-head h2::after { background: #fff; }
.section.teal .section-head p { color: var(--teal-light); }
@media (max-width: 767.98px) { .section { padding: 48px 0; } }

/* ---------- Херој ---------- */
.hero-banner { position: relative; background: var(--ink); }
.hero-banner img { width: 100%; height: auto; display: block; }
.hero-cta { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; padding: 34px 0; }
.hero-cta h1 { color: #fff; margin: 0 0 8px; }
.hero-cta p { color: var(--teal-light); margin: 0; font-size: 1.05rem; max-width: 640px; }
.hero-cta .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 991.98px) { .hero-cta { padding: 26px 0; text-align: center; } .hero-cta p { margin: 0 auto; } .hero-cta .hero-actions { justify-content: center; margin-top: 18px; } }

/* ---------- Лента со икони ---------- */
.icon-strip { background: #fff; border-bottom: 1px solid var(--line); }
.icon-strip .row { --bs-gutter-x: 0; }
.icon-strip-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 28px 12px; border-right: 1px solid var(--line);
    color: var(--ink); height: 100%; transition: background .18s ease;
}
.icon-strip .col:last-child .icon-strip-item { border-right: 0; }
.icon-strip-item:hover { background: var(--teal-wash); color: var(--red); }
.icon-strip-item .material-icons { font-size: 40px; color: var(--teal); margin-bottom: 10px; transition: color .18s ease; }
.icon-strip-item:hover .material-icons { color: var(--red); }
.icon-strip-item span:last-child { font-family: var(--head-font); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .4px; }
@media (max-width: 767.98px) { .icon-strip-item { padding: 18px 8px; } .icon-strip-item .material-icons { font-size: 30px; } .icon-strip-item span:last-child { font-size: 13px; } }

/* ---------- За компанијата ---------- */
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badges { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.about-badges li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink); }
.about-badges li::before {
    content: 'check'; font-family: 'Material Icons'; position: absolute; left: 0; top: -1px;
    color: var(--green); font-size: 20px;
}

/* ---------- Статистика ---------- */
.stat-item { text-align: center; padding: 18px 10px; }
.stat-value { font-family: var(--head-font); font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; color: #fff; line-height: 1; }
.stat-label { color: var(--teal-light); font-size: 13.5px; margin-top: 8px; text-transform: uppercase; letter-spacing: .6px; }

/* ---------- Картичка за услуга ---------- */
.service-card {
    display: flex; flex-direction: column; height: 100%; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .sc-top { background: var(--teal); color: #fff; padding: 22px 22px 18px; display: flex; align-items: center; gap: 14px; transition: background .2s ease; }
.service-card:hover .sc-top { background: var(--teal-dark); }
.service-card .sc-top .material-icons { font-size: 34px; flex-shrink: 0; }
.service-card .sc-top h3 { color: #fff; margin: 0; font-size: 1.12rem; line-height: 1.25; }
.service-card .sc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.service-card .sc-body p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.service-card .sc-list { list-style: none; padding: 0; margin: 0 0 16px; }
.service-card .sc-list li { position: relative; padding-left: 22px; font-size: 14px; margin-bottom: 7px; }
.service-card .sc-list li::before { content: '▸'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.service-card .sc-more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--red); }
.service-card .sc-more:hover { color: var(--red-dark); }

/* ---------- Картичка за категорија ---------- */
.cat-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card .cc-img { height: 190px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cc-img .material-icons { font-size: 62px; color: var(--teal-mid); }
.cat-card .cc-body { padding: 20px; }
.cat-card .cc-body h3 { margin: 0 0 8px; font-size: 1.16rem; color: var(--ink); }
.cat-card:hover .cc-body h3 { color: var(--red); }
.cat-card .cc-body p { color: var(--muted); font-size: 14px; margin: 0 0 12px; line-height: 1.6; }
.cat-card .cc-sub { list-style: none; padding: 0; margin: 0; }
.cat-card .cc-sub li { font-size: 13.5px; padding: 2px 0; color: var(--body); }
.cat-card .cc-sub li::before { content: '›'; color: var(--teal-mid); margin-right: 6px; font-weight: 700; }

/* ---------- Картичка за производ ---------- */
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .pc-img { height: 210px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.product-card .pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .pc-img .material-icons { font-size: 54px; color: #ccd4da; }
.product-card .pc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.product-card .pc-sku { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 5px; }
.product-card .pc-title { font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.45; display: block; margin-bottom: 14px; }
.product-card:hover .pc-title { color: var(--red); }
.product-card .pc-btn { margin-top: auto; }

/* ---------- Филтер во каталогот ---------- */
.cat-filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.cat-filter h4 { font-size: 1.05rem; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.cat-filter ul { list-style: none; padding: 0; margin: 0; }
.cat-filter > ul > li { margin-bottom: 4px; }
.cat-filter a { display: block; padding: 6px 8px; border-radius: 5px; font-size: 14.5px; color: var(--body); font-weight: 500; }
.cat-filter a:hover { background: var(--teal-wash); color: var(--teal); }
.cat-filter a.active { background: var(--teal); color: #fff; }
.cat-filter .sub { padding-left: 12px; border-left: 2px solid var(--line); margin: 3px 0 8px 8px; }
.cat-filter .sub a { font-size: 13.5px; font-weight: 400; padding: 4px 8px; }

/* ---------- Патека (breadcrumbs) ---------- */
.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 13.5px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: #c3ccd4; margin: 0 8px; }
.crumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Страница на производ ---------- */
.product-gallery { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; text-align: center; }
.product-gallery .main-img { max-width: 100%; max-height: 420px; object-fit: contain; }
.product-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.product-thumbs img { width: 68px; height: 68px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 4px; cursor: pointer; background: #fff; }
.product-thumbs img:hover, .product-thumbs img.active { border-color: var(--red); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.spec-table th { color: var(--muted); font-weight: 600; width: 45%; background: var(--bg-soft); }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; transition: border-color .15s ease; }
.doc-item:hover { border-color: var(--red); }
.doc-item .material-icons { color: var(--red); }
.doc-item .doc-name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.doc-item .doc-size { color: var(--muted); font-size: 12.5px; }

/* ---------- Лента со повик кон акција ---------- */
.cta-bar { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding: 44px 0; }
.cta-bar h2 { color: #fff; margin: 0 0 6px; }
.cta-bar p { margin: 0; color: rgba(255,255,255,.9); }

/* ---------- Формулар ---------- */
.quote-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-form .form-label { font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 5px; }
.quote-form .form-control, .quote-form .form-select { border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; font-size: 15px; }
.quote-form .form-control:focus, .quote-form .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,124,133,.12); }
.quote-form .req { color: var(--red); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

/* ---------- Локации ---------- */
.location-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 22px; height: 100%; }
.location-card .loc-kind { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); font-weight: 700; }
.location-card h3 { font-size: 1.15rem; margin: 6px 0 12px; }
.location-card ul { list-style: none; padding: 0; margin: 0; }
.location-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 8px; }
.location-card .material-icons { font-size: 19px; color: var(--teal); flex-shrink: 0; }

/* ---------- Тим ---------- */
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid var(--teal-light); }
.team-card h3 { font-size: 1.08rem; margin: 0 0 4px; }
.team-card .role { color: var(--red); font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.team-card .dept { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.team-card a { display: block; font-size: 14px; padding: 2px 0; }

/* ---------- Подножје ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 0; margin-top: auto; font-size: 14.5px; }
.site-footer .footer-logo { height: 48px; background: #fff; padding: 7px 10px; border-radius: 6px; margin-bottom: 16px; }
.site-footer .footer-about { line-height: 1.75; font-size: 14px; }
.site-footer h5 { font-family: var(--head-font); color: #fff; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--red); }
.site-footer .footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.site-footer .footer-contact .material-icons { font-size: 18px; color: var(--teal-mid); flex-shrink: 0; margin-top: 2px; }
.site-footer .footer-social { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.site-footer .footer-social:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }

/* ---------- Кон врвот ---------- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 900;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--red-dark); color: #fff; transform: translateY(-3px); }

/* ---------- Колачиња ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
    background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- Содржина на страница ---------- */
.page-content { font-size: 16px; line-height: 1.8; }
.page-content h2 { margin: 1.6em 0 .6em; }
.page-content h3 { margin: 1.3em 0 .5em; }
.page-content p { margin-bottom: 1em; }
.page-content ul, .page-content ol { margin-bottom: 1em; padding-left: 1.3em; }
.page-content li { margin-bottom: .45em; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.page-content .lead { font-size: 1.12rem; color: var(--ink); font-weight: 500; }

/* ---------- Наслов на страница ---------- */
.page-hero { background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; padding: 52px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: var(--teal-light); margin: 10px 0 0; max-width: 720px; }

/* ---------- Пораки ---------- */
.alert-brand { background: #e8f7ee; border: 1px solid #b9e6cb; color: #17663a; border-radius: var(--radius); }

/* ---------- Празна состојба ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .material-icons { font-size: 58px; color: #ccd4da; margin-bottom: 14px; }
