:root {
    --primary: #0b5c8e;
    --primary-dark: #063b59;
    --accent: #f4b41a;
    --bg: #f5f7fa;
    --text: #222;
    --light: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER + NAV */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo span {
    background: var(--accent);
    color: #000;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

nav li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

nav li a:hover::after,
nav li a.active::after {
    width: 100%;
}

/* Hamburger */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--light);
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 56px;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        width: 220px;
        padding: 0.75rem 1rem 1rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        border-radius: 0 0 0 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    nav ul.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }
}

/* HERO */

.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--light);
    padding: 4rem 1rem 3rem;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.hero p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hero-highlight {
    display: inline-block;
    background: rgba(0,0,0,0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(0,0,0,0.15);
}

.hero-badge {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hero-card {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}

.hero-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-card ul {
    list-style: none;
    font-size: 0.9rem;
}

.hero-card li {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-card li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

/* SEKCIJE */

section {
    padding: 3rem 1rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    color: #555;
}

/* USLUGE */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--light);
    border-radius: 10px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e6ee;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #555;
}

/* GALERIJA */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #ddd;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -32px;
    right: 0;
    background: #fff;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.lightbox-caption {
    margin-top: 0.4rem;
    color: #eee;
    font-size: 0.9rem;
}

/* KONTAKT */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
}

.contact-info {
    font-size: 0.95rem;
}

.contact-info p {
    margin-bottom: 0.4rem;
}

.contact-highlight {
    display: inline-block;
    background: #e7f4ff;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
}

.contact-form {
    background: var(--light);
    border-radius: 10px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e6ee;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccd3e0;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */

footer {
    background: var(--primary-dark);
    color: #dbe5f2;
    padding: 1rem 1rem 1.2rem;
    font-size: 0.8rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.footer-inner a {
    color: #f4f7fc;
    font-weight: 500;
}
