/* ===========================================================
   ALU ĐORĐEVIĆ — moderan sajt
   Fazon: "Linija & Staklo" — tamno plavo-siva paleta (aluminijum),
   cijan akcenat (staklo), oštre linije profila kao dekorativni motiv.
   =========================================================== */

:root {
    --ink: #0d1420;
    --ink-2: #141d2b;
    --panel: #1a2436;
    --panel-light: #22304a;
    --line: rgba(255,255,255,.08);
    --text: #eef2f7;
    --text-dim: #a7b3c4;
    --accent: #29d3d3;
    --accent-2: #ffb238;
    --accent-ink: #06181a;
    --radius: 14px;
    --shadow: 0 20px 50px -20px rgba(0,0,0,.5);
    --maxw: 1180px;
    font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f6f9;
    color: #1c2431;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--accent-ink);
    padding: 14px 26px; border-radius: 999px; font-weight: 700;
    border: none; cursor: pointer; font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 25px -10px rgba(41,211,211,.6);
}
.btn:hover { transform: translateY(-2px); }
.btn.outline {
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35);
    box-shadow: none;
}
.btn.outline:hover { border-color: var(--accent); color: var(--accent); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- TOP BAR ---------- */
.topbar {
    background: var(--ink);
    color: var(--text-dim);
    font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: var(--text-dim); }
.topbar a:hover { color: var(--accent); }
.topbar .tb-links { display: flex; gap: 18px; }
.topbar .tb-links span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- HEADER / NAV ---------- */
header.site-header {
    background: var(--ink);
    position: sticky; top: 0; z-index: 200;
    border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; }
.logo .mark {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #1a8f8f);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-ink); font-weight: 900; font-size: 1.1rem;
}
.logo img { height: 42px; width: auto; }
nav.main-nav ul { display: flex; gap: 6px; }
nav.main-nav a {
    color: var(--text-dim); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    transition: all .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: #fff; background: var(--panel-light); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .phone-cta {
    color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.burger { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
    .topbar { display: none; }
    nav.main-nav {
        position: fixed; inset: 76px 0 0 0; background: var(--ink);
        transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
        padding: 20px;
    }
    nav.main-nav.open { transform: translateX(0); }
    nav.main-nav ul { flex-direction: column; gap: 4px; }
    nav.main-nav a { display: block; padding: 16px; font-size: 1.1rem; }
    .nav-cta .phone-cta span.txt { display: none; }
    .burger { display: block; }
}

/* ---------- HERO ---------- */
.hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(41,211,211,.18), transparent),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 90px);
    pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: .4em; }
.hero p.lead { color: var(--text-dim); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual {
    position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/3.2;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.stats-strip { background: var(--panel); border-top: 1px solid var(--line); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat .lbl { color: var(--text-dim); font-size: .85rem; margin-top: 4px; }
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { aspect-ratio: 16/10; }
    .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
}

/* ---------- SECTION GENERIC ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 50px 0; }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.section-head p { color: #5b6472; }
.section.on-dark { background: var(--ink); color: #fff; }
.section.on-dark .section-head p { color: var(--text-dim); }
.section.on-light-alt { background: #fff; }

/* ---------- HOME INTRO / TWO COL ---------- */
.two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col .text-block h3 { font-size: 1.7rem; }
.text-block p { color: #4a5262; white-space: pre-line; }
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 28px; }
    .two-col.reverse { direction: ltr; }
}

/* ---------- FEATURE CARDS ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border-radius: var(--radius); padding: 30px 26px;
    border: 1px solid #e8ecf1; transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icn {
    width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), #1a8f8f);
    display: flex; align-items: center; justify-content: center; color: #06181a; font-size: 1.4rem; font-weight: 800;
}
.feature-card h4 { font-size: 1.05rem; }
.feature-card p { color: #5b6472; font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- PRODUCT LIST (about page) ---------- */
.prod-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.prod-list li {
    padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600;
}
.prod-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
@media (max-width: 700px) { .prod-list { grid-template-columns: 1fr; } }

/* ---------- GALLERY / TABS ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cat-tabs button {
    background: #fff; border: 1px solid #dfe4ea; color: #3b4353;
    padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer;
    transition: all .15s ease;
}
.cat-tabs button:hover { border-color: var(--accent); color: #128a8a; }
.cat-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
}
.gallery-item {
    position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1;
    background: #e6e9ee; cursor: pointer; border: 1px solid #e8ecf1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .tag {
    position: absolute; left: 8px; bottom: 8px; background: rgba(13,20,32,.75); color: #fff;
    font-size: .68rem; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.empty-note { text-align: center; color: #7c8494; padding: 40px 0; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(6,10,16,.92); z-index: 999;
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2rem; cursor: pointer; background:none; border:none; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .nav-btn.prev { left: 18px; } .lightbox .nav-btn.next { right: 18px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info-card {
    background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px; height: fit-content;
}
.contact-info-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row .ic { color: var(--accent); font-weight: 900; }
.contact-info-card .row strong { display: block; }
.contact-info-card .row span.dim { color: var(--text-dim); font-size: .9rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid #e8ecf1; margin-top: 20px; }
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }

.form-card { background: #fff; border-radius: var(--radius); padding: 34px; border: 1px solid #e8ecf1; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-row input, .form-row textarea {
    width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #dfe4ea;
    font-family: inherit; font-size: .95rem; background: #fafbfc;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.form-msg.ok { background: #e2f9ef; color: #0a7a4a; }
.form-msg.err { background: #fdeaea; color: #b3261e; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA STRIP ---------- */
.cta-strip {
    background: linear-gradient(120deg, #0d1420, #16324a);
    color: #fff; border-radius: 24px; padding: 50px; text-align: center; margin: 0 20px;
    position: relative; overflow: hidden;
}
.cta-strip h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-strip p { color: var(--text-dim); max-width: 520px; margin: 0 auto 24px; }

/* ---------- FOOTER ---------- */
footer.site-footer { background: var(--ink); color: var(--text-dim); padding: 54px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid a { color: var(--text-dim); display: block; padding: 6px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ---------- FLOATING CONTACT BUTTONS ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 12px; z-index: 150; }
.float-actions a {
    width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; box-shadow: var(--shadow);
}
.float-actions .fa-call { background: var(--accent); color: var(--accent-ink); }
.float-actions .fa-wa { background: #25D366; }

/* ---------- ADMIN shared bits used sometimes in front (breadcrumbs) ---------- */
.page-hero {
    background: var(--ink); color: #fff; padding: 60px 0 40px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

.badge { display:inline-block; background: rgba(41,211,211,.12); color:#128a8a; padding: 4px 12px; border-radius: 999px; font-size:.78rem; font-weight:700; }
