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

/* ===== CSS VARIABLES ===== */
:root {
    --primary:      #0A3060;
    --primary-dark: #061E3F;
    --secondary:    #1A7FC1;
    --accent:       #E87722;
    --accent-dark:  #C96318;
    --light:        #F5F7FA;
    --dark:         #111827;
    --text:         #374151;
    --text-light:   #6B7280;
    --border:       #E5E7EB;
    --white:        #FFFFFF;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow:       0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
    --radius:       8px;
    --radius-lg:    14px;
    --transition:   all 0.28s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

a { transition: var(--transition); }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--primary) !important;
    padding: 0;
    box-shadow: 0 2px 12px rgba(6,30,63,.25);
}

.navbar-brand img {
    height: 48px;
    transition: var(--transition);
}
.navbar-brand img:hover { opacity: .85; }

.navbar-brand-text {
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .02em;
    text-decoration: none;
    line-height: 1.15;
}
.navbar-brand-text span { display: block; font-size: .65rem; font-weight: 400; opacity: .65; letter-spacing: .06em; text-transform: uppercase; }

.navbar-nav .nav-link {
    color: rgba(255,255,255,.82) !important;
    font-weight: 500;
    font-size: .88rem;
    padding: 1.45rem .9rem !important;
    transition: var(--transition);
    letter-spacing: .02em;
    position: relative;
}
.navbar-nav .nav-link:hover  { color: var(--white) !important; }
.navbar-nav .nav-link.active { color: var(--white) !important; }
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: .9rem; right: .9rem;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: .3rem .75rem;
    margin-left: .75rem;
}
.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    padding: .1rem .3rem;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: .06em;
}
.lang-btn:hover, .lang-btn.active { color: var(--white); background: rgba(255,255,255,.18); }
.lang-sep { color: rgba(255,255,255,.25); font-size: .75rem; }

.navbar-toggler { border: 1px solid rgba(255,255,255,.28); padding: .38rem .65rem; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* mobile nav */
@media (max-width: 991px) {
    .navbar-collapse { padding: .75rem 0 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: .5rem; }
    .navbar-nav .nav-link { padding: .65rem 0 !important; }
    .navbar-nav .nav-link.active::after { display: none; }
    .lang-toggle { margin: .75rem 0 0; align-self: flex-start; }
}

/* ===== BUTTONS ===== */
.btn-primary-hk {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
    padding: .78rem 1.9rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: .02em;
    cursor: pointer;
}
.btn-primary-hk:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232,119,34,.3);
}

.btn-outline-hk {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.38);
    padding: .78rem 1.9rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-outline-hk:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark-hk {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: .78rem 1.9rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-dark-hk:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(158deg, rgba(6,30,63,.82) 0%, rgba(10,48,96,.78) 50%, rgba(26,90,144,.72) 100%),
        url('../img/hero-bg.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M20 0L0 0 0 20' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #F5F7FA);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 9rem 0 7rem;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(232,119,34,.18);
    border: 1px solid rgba(232,119,34,.35);
    color: #f5a85a;
    border-radius: 24px;
    padding: .4rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: .4rem;
}
.hero-sub {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 1.4rem;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 2.3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.hero-stat .number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat .label {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    margin-top: .3rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ===== SECTIONS ===== */
.section     { padding: 5.5rem 0; }
.section-alt { padding: 5.5rem 0; background: var(--light); }

.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .6rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: .9rem;
}
.section-sub {
    font-size: 1rem;
    color: var(--text-light);
}
.accent-line { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin: .8rem 0 1.5rem; }

/* ===== SERVICE CARDS (homepage) ===== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--accent); }

.service-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem; color: var(--white);
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .65rem; }
.service-card p  { color: var(--text-light); font-size: .9rem; line-height: 1.65; }

/* ===== STAT BOXES (about preview) ===== */
.stat-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-box:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat-box .num { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-box .num.accent { color: var(--accent); }
.stat-box .lbl { font-size: .8rem; color: var(--text-light); margin-top: .4rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -60%; right: -5%;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.cta-banner p  { color: rgba(255,255,255,.78); font-size: 1rem; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(158deg, #061E3F 0%, #0A3060 100%);
    padding: 5rem 0 3rem;
    color: var(--white);
}
.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .88rem; text-decoration: none; }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.25); }

/* ===== VALUE CARDS ===== */
.value-card { text-align: center; padding: 1.5rem 1rem; }
.value-icon  { font-size: 2.2rem; color: var(--accent); margin-bottom: .9rem; }
.value-card h4 { font-size: .98rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.value-card p  { font-size: .88rem; color: var(--text-light); }

/* ===== SERVICE PAGE BLOCKS ===== */
.service-block        { padding: 4rem 0; }
.service-block-alt    { padding: 4rem 0; background: var(--light); }
.service-block-icon {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--white);
    margin-bottom: 1.4rem;
}
.detail-list { list-style: none; padding: 0; }
.detail-list li {
    padding: .45rem 0;
    color: var(--text);
    font-size: .93rem;
    display: flex; align-items: flex-start; gap: .75rem;
}
.detail-list li::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: .45rem;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card-img {
    height: 190px;
    background: linear-gradient(135deg, #0d2a4e 0%, #1e5a8c 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,.22);
}
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .6rem; }
.product-card-body p  { font-size: .88rem; color: var(--text-light); line-height: 1.65; }

/* ===== REFERENCE FILTERS ===== */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text-light);
    padding: .45rem 1.15rem;
    border-radius: 24px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ===== REFERENCE CARDS ===== */
.ref-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.ref-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ref-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Placeholder per category */
.ref-card-placeholder {
    width: 100%; height: 220px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem; position: relative; overflow: hidden;
}
.ref-card-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: inherit; opacity: 1;
}
.ref-card-placeholder i {
    font-size: 3.2rem; position: relative; z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}
.ref-card-placeholder span {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; position: relative; z-index: 1;
    opacity: .7;
}

/* Category gradients */
.ph-ppv    { background: linear-gradient(145deg, #0e6ea6 0%, #1ab4e0 60%, #72d8f5 100%); color: #fff; }
.ph-ppov   { background: linear-gradient(145deg, #1b4f3a 0%, #2e8b57 60%, #52c788 100%); color: #fff; }
.ph-ps     { background: linear-gradient(145deg, #1a2a4a 0%, #2d4a7a 60%, #4a72b0 100%); color: #fff; }
.ph-toplovodi { background: linear-gradient(145deg, #7a2a00 0%, #c0440e 60%, #e87722 100%); color: #fff; }
.ph-bunari { background: linear-gradient(145deg, #2d4a1e 0%, #5a7a32 60%, #8ab048 100%); color: #fff; }
.ph-ostalo { background: linear-gradient(145deg, #2a2a3a 0%, #445566 60%, #6688aa 100%); color: #fff; }
.ref-card-body { padding: 1.2rem 1.3rem 1.3rem; }
.ref-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: .45rem; }
.ref-card-body h4 { font-size: .98rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.ref-desc { font-size: .85rem; color: var(--text-light); margin-bottom: .65rem; line-height: 1.55; }
.ref-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-light); flex-wrap: wrap; }
.ref-meta span { display: flex; align-items: center; gap: .3rem; }

/* ===== CONTACT INFO CARD ===== */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.contact-info-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.contact-info-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-info-label { font-size: .72rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.contact-info-val   { font-size: .92rem; color: var(--white); font-weight: 500; }
.contact-info-val a { color: var(--white); text-decoration: none; }
.contact-info-val a:hover { color: var(--accent); }

/* ===== CONTACT FORM ===== */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.contact-form-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1.6rem; }
.form-label { font-size: .83rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: .62rem .95rem;
    font-size: .9rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus, .form-select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(26,127,193,.12); outline: none; }
textarea.form-control { resize: vertical; min-height: 130px; }
.hp-field { display: none !important; }

.btn-submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: .82rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: inherit;
    letter-spacing: .02em;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232,119,34,.28); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-alert {
    border-radius: var(--radius);
    padding: .95rem 1.2rem;
    font-size: .88rem;
    margin-top: 1rem;
    display: none;
}
.form-alert.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.form-alert.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ===== MAP ===== */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 360px; border: none; display: block; }

/* ===== CERTS SECTION ===== */
.cert-placeholder {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: .9rem;
}
.cert-placeholder i { font-size: 2rem; color: var(--border); display: block; margin-bottom: .75rem; }

/* ===== FOOTER ===== */
footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-logo { height: 44px; margin-bottom: 1rem; }
.footer-brand-text { color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.footer-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; color: rgba(255,255,255,.6); font-size: .86rem; margin-bottom: .55rem; }
.footer-contact-item i { color: var(--accent); width: 15px; flex-shrink: 0; margin-top: .15rem; }
.footer-contact-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.4rem; margin-top: 2.5rem; font-size: .8rem; color: rgba(255,255,255,.3); }

/* ===== SCROLL ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 1.25rem; right: 1.5rem;
    background: none; border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: .75;
    transition: var(--transition);
    line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ===== UTILITIES ===== */
.text-primary-hk { color: var(--primary) !important; }
.text-accent      { color: var(--accent)  !important; }
.bg-primary-hk    { background: var(--primary) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-inner { padding: 8rem 0 6rem; text-align: center; }
    .hero-desc  { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; gap: 1.8rem; }
    .section, .section-alt { padding: 3.5rem 0; }
    .page-header { padding: 4rem 0 2.5rem; text-align: center; }
    .cta-banner  { text-align: center; }
    .cta-banner .text-lg-end { text-align: center !important; margin-top: 1.25rem; }
    .contact-info-card { margin-bottom: 1.5rem; }
    .filter-bar { justify-content: center; }
    .hero-badge { font-size: .7rem; }
    .d-flex.gap-3 { justify-content: center; }
}

@media (max-width: 575px) {
    .product-card-img { height: 160px; }
    .ref-card-img, .ref-card-placeholder { height: 185px; }
}
