:root {
    --primary: #e65100;        /* jaka narandžasto-crvena */
    --primary-dark: #bf360c;   /* tamnija nijansa */
    --accent: #ffb74d;         /* topla narandžasta za detalje */
    --bg: #fff7ef;             /* svetla bež pozadina */
    --text: #212121;
    --nav-bg: #121526;         /* tamno plava / gotovo marine */
    --card-bg: #ffffff;
    --border-soft: #f0e0cf;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

/* Layout helpers */

.container {
    width: min(1120px, 100% - 2rem);
    margin-inline: auto;
}

/* Top bar */

.top-bar {
    background: var(--nav-bg);
    color: #e5e7eb;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.4rem;
}

.top-bar-contact {
    opacity: 0.9;
}

/* Header / nav */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.2rem;
    gap: 1.2rem;
}

.logo-img {
    max-height: 80px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: #374151;
    position: relative;
    padding-block: 0.25rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* HERO */

.hero {
    position: relative;
}

.hero-slider {
    position: relative;
    height: min(70vh, 520px);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 60%);
    display: flex;
    align-items: center;
}

.hero-text {
    color: #f9fafb;
    max-width: 520px;
}

.hero-text h1 {
    font-family: "Ultra", "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero-text h1 span {
    font-size: 0.6em;
    display: block;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.25rem;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* slider arrows */

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    z-index: 20;
    transition: background 0.2s ease, transform 0.1s ease;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 1.2rem;
}

.hero-next {
    right: 1.2rem;
}

/* SECTIONS */

.section {
    padding-block: 3.5rem;
}

.section h2 {
    font-family: "Ultra", "Times New Roman", serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.about {
    background: #fffdf8;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.about p {
    margin-bottom: 0.8rem;
}

.about-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.about-card ul {
    padding-left: 1.1rem;
    margin: 0.6rem 0 0;
}

/* features */

.features {
    background: linear-gradient(135deg, #fff7ef 0%, #ffe8d5 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(254, 215, 170, 0.8);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.feature-box h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: #b33c0b;
}

/* gallery */

.gallery {
    background: #fffdf8;
}

.gallery-intro {
    max-width: 640px;
}

.gallery-grid {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

/* contact */

.contact {
    background: linear-gradient(135deg, #1b1f3b 0%, #43121c 100%);
    color: #e5e7eb;
}

.contact h2 {
    color: #fff7ef;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.7rem;
}

.contact a {
    color: #ffe0b2;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.contact-card {
    background: rgba(17, 24, 39, 0.92);
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form label {
    font-size: 0.9rem;
    display: grid;
    gap: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: #111827;
    color: #f9fafb;
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}

.contact-form button.btn-primary {
    justify-self: flex-start;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* footer */

.site-footer {
    background: #0b0c16;
    color: #9ca3af;
    font-size: 0.85rem;
    padding-block: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: space-between;
    align-items: center;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero-slider {
        height: 60vh;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%);
        align-items: flex-end;
        padding-bottom: 2.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-nav {
        display: none;
    }

    .top-bar {
        font-size: 0.8rem;
    }

    .section {
        padding-block: 3rem;
    }
}
.page-hero--galerija {
    background: rgba(0,0,0,0.4) url("../img/galerija-hero.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.section-gallery .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-gallery .section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-item figcaption {
    font-size: 0.9rem;
    padding: 0.75rem 1rem 1rem;
}
/* PAGE HERO */
.page-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* Tamni overlay → vidi se tekst */
}

.page-hero-text {
    position: relative;
    z-index: 10;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.page-hero-text h1 {
    font-family: 'Ultra', serif;
    font-size: 48px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.page-hero-text p {
    font-size: 18px;
}
/* Galerija na posebnoj stranici */
.gallery-page {
    padding-top: 2.5rem;
}

.gallery-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-grid-large a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #f0e2d5;
    cursor: pointer;
}

.gallery-grid-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-grid-large a::after {
    content: "Klikni za uvećanje";
    position: absolute;
    inset: auto 0 0 0;
    text-align: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-grid-large a:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.gallery-grid-large a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHTBOX – overlay preko cele strane sa animacijom */
.lightbox {
    position: fixed;
    inset: 0; /* isto kao top:0; right:0; bottom:0; left:0; */
    z-index: 9999;
    background: rgba(0,0,0,0.85);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px #000;

    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.is-visible .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.lightbox-prev,
.lightbox-next {
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}


.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

.page-hero-overlay {
    background: rgba(0,0,0,0.45);
    padding: 40px;
    text-align: center;
}

.page-hero h1, 
.page-hero p {
    color: #fff !important;
}
