/* ── Fonts ───────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Abel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('abel'), url('fonts/abel.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Roboto Condensed Light'), url('fonts/roboto.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF;
}
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Roboto Condensed Light'), url('fonts/roboto2.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153;
}

/* ── Variables ───────────────────────────────────────────────────────── */
:root {
    --blue:       #1b4f8a;
    --blue-hover: #2563b0;
    --dark:       #0f172a;
    --text:       #1e293b;
    --muted:      #64748b;
    --light:      #f1f5f9;
    --radius:     10px;
    --shadow:     0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--text);
    background: #fff;
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
.navbar {
    background-color: #fff !important;
    font-family: 'Abel';
    padding: 10px 0;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

@media(max-width: 767px) {
    .navbar {
        padding: 10px;
    }
}

.nav-link {
    color: rgba(0,0,0,.6) !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--blue) !important;
    background: rgba(27,79,138,.07);
}
.navbar-toggler { border-color: rgba(0,0,0,.2); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.masthead {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../assets/img/header-bg.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    scroll-margin-top: 64px;
    padding: 80px 0 48px;
}
.masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.52) 0%, rgba(27,79,138,.42) 100%);
}
.masthead .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,.9);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    margin-top: 25px;
}
.masthead h1 {
    font-family: 'Abel';
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
}
.masthead .lead {
    font-size: clamp(.88rem, 1.6vw, 1rem);
    line-height: 1.65;
    color: rgba(255,255,255,.82);
    max-width: 680px;
    margin: 0 auto 24px;
}
.btn-hero {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-family: 'Abel';
    font-size: 16px;
    letter-spacing: 1px;
    padding: 14px 38px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, transform .2s;
    border: none;
}
.btn-hero:hover {
    background: var(--blue-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.emetal-page {
    width: 100%;
    padding: 96px 0 80px;
    scroll-margin-top: 64px;
}
#usluge   { background: #fff; }
#galerija { background: var(--light); }
#kontakt  { background: #fff; }

/* ── Section title ───────────────────────────────────────────────────── */
.section-title {
    font-family: 'Abel';
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0;
    line-height: 1.2;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
    margin: 14px auto 44px;
}

/* ── Service cards ───────────────────────────────────────────────────── */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 16px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid #e8edf3;
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,.13);
}
.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 1.2rem;
    letter-spacing: .3px;
    color: var(--dark);
    font-weight: bold;
    margin: 0;
}
.service-card span {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 8px;
}

/* ── Service detail ──────────────────────────────────────────────────── */
.h-divider {
    margin: 48px 0;
    height: 1px;
    background: #e2e8f0;
}
.service-detail h4 {
    font-family: 'Abel';
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 14px;
}
.service-tags span {
    display: inline-block;
    margin: 3px;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: var(--text);
    transition: border-color .15s, color .15s;
}
.service-tags span:hover {
    border-color: #e11d48;
    color: #e11d48;
}

/* ── Gallery grid ────────────────────────────────────────────────────── */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
}
.image-fit {
    flex: 0 0 auto;
    margin: 6px;
    width: calc(33.333% - 12px);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: block;
}
.image-fit-placeholder { display: none; }
.image-fit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s, opacity .3s;
}
.image-fit:hover .image-fit-img {
    transform: scale(1.06);
    opacity: .82;
}
@media (max-width: 767px) {
    .image-fit { width: calc(50% - 12px); }
}
@media (max-width: 480px) {
    .image-fit { width: calc(100% - 12px); }
}

/* ── Gallery modal ───────────────────────────────────────────────────── */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
}
.gallery-modal.open { display: flex; }
.gallery-modal .modal-content {
    background: transparent !important;
    width: 80vw;
    max-width: 1100px;
    animation: gzoom .3s ease;
}
@keyframes gzoom {
    from { transform: scale(.88); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.gallery-thumbnail {
    width: 100%;
    height: 75vh;
    background: center / contain no-repeat;
}
.close-btn {
    position: absolute;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s;
    z-index: 10000;
}
.close-btn:hover { opacity: 1; }
.next, .previous {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 12px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    line-height: 0;
    transition: background .2s;
}
.next     { right: 16px; }
.previous { left: 16px; }
.next:hover, .previous:hover { background: rgba(255,255,255,.25); }
.next svg, .previous svg { width: 30px; fill: #fff; display: block; }
@media (max-width: 700px) {
    .gallery-modal .modal-content { width: 95vw; }
    .gallery-thumbnail { height: 52vw; }
    .next svg, .previous svg { width: 18px; }
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px 24px;
    text-align: center;
    height: 100%;
}
.contact-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--blue);
}
.contact-card h6 {
    font-family: 'Abel';
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.contact-card a,
.contact-card span {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.7;
}
.contact-card a:hover { color: var(--blue); }
.contact-info-label {
    font-family: 'Abel';
    font-size: 1.2rem;
    color: var(--blue);
    margin: 0 0 12px;
    border-left: 3px solid var(--blue);
    padding-left: 10px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 15px;
}
.contact-info-item a {
    color: var(--text);
    text-decoration: none;
}
.contact-info-item a:hover { color: var(--blue); }
.contact-map {
    width: 100%;
    height: 380px;
    border: none;
    border-radius: var(--radius);
    margin-top: 24px;
    display: block;
}
.form-control {
    border: 1.5px solid #dde3ec !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 15px;
    background: #fafbfd;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(27,79,138,.1) !important;
    background: #fff;
    outline: none;
}
label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--blue) !important;
    border-color: var(--blue) !important;
    border-radius: 8px !important;
    font-family: 'Abel';
    font-size: 16px;
    letter-spacing: .5px;
    padding: 10px 28px;
    transition: background .2s, transform .15s !important;
}
.btn-primary:hover {
    background-color: var(--blue-hover) !important;
    border-color: var(--blue-hover) !important;
    transform: translateY(-1px);
}
.btn-secondary {
    border-radius: 8px !important;
    font-family: 'Abel';
    font-size: 16px;
    letter-spacing: .5px;
    padding: 10px 28px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
    width: 100%;
    background: var(--dark);
    color: rgba(255,255,255,.6);
    text-align: center;
    padding: 22px 0 18px;
    font-size: 13px;
}
footer a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
}
footer a:hover { color: #fff; }
footer .credit {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    opacity: .45;
}
footer .credit a { color: rgba(255,255,255,.55); }
footer .credit a:hover { color: #fff; opacity: 1; }
