:root {
    --green: #173f2c;
    --green-soft: #2f5d42;
    --cream: #f7f1e7;
    --beige: #e8dcc9;
    --earth: #8b5f3d;
    --text: #243126;
    --muted: #6e766c;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(22, 41, 29, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);

    width: min(1120px, calc(100% - 24px));

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
    padding: 8px 18px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;

    background: rgba(247, 241, 231, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: 142px;
    height: 58px;
    object-fit: contain;
    object-position:center; 
    border-radius: 14px;
    transform: scale(0.8);
    transform-origin: center;
}

.brand-fallback {
    display: none;
    gap: 10px;
    align-items: center;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--cream);
    background: var(--green);
}

.brand strong {
    display: block;
    letter-spacing: 0.18em;
    font-size: 1.05rem;
}

.brand small {
    display: block;
    margin-top: -4px;
    color: var(--muted);
    font-size: 0.74rem;
}

.main-nav {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.9rem;
}

.main-nav a {
    opacity: 0.82;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--green);
}

.language-switcher {
    

    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(23, 63, 44, 0.08);
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .language-switcher {
        order: 2;
        margin-left: 0;
    }

    .nav-toggle {
        order: 3;
        margin-left: -30%;
    }
}

.language-button {
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
    color: var(--green);
    background: transparent;
    cursor: pointer;
}

.language-button.active {
    color: var(--cream);
    background: var(--green);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}



.hero {
    min-height: 100dvh;
    position: relative;
    display: grid;
    align-items: center;
    padding: 160px 24px 80px;

    background-image:
        linear-gradient(
            rgba(18, 48, 34, 0.35),
            rgba(18, 48, 34, 0.68)
        ),
        url("assets/pozadinaKuca.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--earth);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero .eyebrow {
    color: #f1dfc0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.92;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
}

.hero p:not(.eyebrow) {
    width: min(680px, 100%);
    margin: 0 auto 34px;
    font-size: 1.25rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    color: var(--cream);
    background: var(--green);
    box-shadow: 0 12px 30px rgba(23, 63, 44, 0.25);
}

.secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section {
    width: min(1120px, calc(100% - 34px));
    margin: 0 auto;
    /* padding: 96px 0; */
    padding: 48px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 36px;
}

.section-heading h2,
.split h2,
.contact h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.feature-grid,
.blog-grid,
.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card,
.blog-card,
.review-card,
blockquote {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature-card span {
    display: block;
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 14px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
}


.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.split-text {
    padding: 34px;
}

/* .image-card {
    min-height: 540px;
    border-radius: var(--radius);
    background:
        linear-gradient(rgba(23, 63, 44, 0.1), rgba(23, 63, 44, 0.18)),
        url("assets/kuca1.webp") center/cover;

    box-shadow: var(--shadow);
} */

.image-card {
    min-height: 540px;
    border-radius: var(--radius);
    background:
        linear-gradient(rgba(23, 63, 44, 0.1), rgba(23, 63, 44, 0.18)),
        url("assets/kuca1.webp") 55% center / cover no-repeat;
    box-shadow: var(--shadow);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter {
    border: 1px solid rgba(23, 63, 44, 0.2);
    background: transparent;
    color: var(--green);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
}

.filter.active {
    background: var(--green);
    color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* .gallery-item {
    min-height: 260px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer; 
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
} */

/* .gallery-item {
    min-height: 260px;
    border: 0;
    border-radius: var(--radius);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow);
    border: 4px solid rgba(255,255,255,0.7);
} */

.gallery-item {
    min-height: 260px;
    border: none;
    border-radius: var(--radius);
    box-shadow: none;
    background-size: cover;
    background-position: center;
}
.gallery-item:nth-child(1) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/eksterier1.webp");
}
 /* .gallery-item:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); 
    background-image: url("assets/eksterier2.webp");
}  */
.gallery-item:nth-child(2) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/eksterier2.webp");
}
.gallery-item:nth-child(3) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/eksterier3.webp");
}
.gallery-item:nth-child(4) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/interier1.webp");
}
.gallery-item:nth-child(5) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/interier2.webp");
}
.gallery-item:nth-child(6) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/interier3.webp");
}
.gallery-item:nth-child(7) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/interier4.webp");
}
.gallery-item:nth-child(8) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/interier5.webp");
}
.gallery-item:nth-child(9) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/sadrzaj1.webp");
}
.gallery-item:nth-child(10) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/sadrzaj2.webp");
}
.gallery-item:nth-child(11) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/sadrzaj3.webp");
}
.gallery-item:nth-child(12) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/sadrzaj4.webp");
}
.gallery-item:nth-child(13) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/sadrzaj5.webp");
}
.gallery-item:nth-child(14) {
    /* background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80"); */
    background-image: url("assets/sadrzaj6.webp");
}

/* .gallery-item:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=900&q=80");
}

.gallery-item:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=900&q=80");
} */

/* .gallery-item:nth-child(4) {
    background-image: url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=900&q=80");
} */

/* .gallery-item:nth-child(5) {
    background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=900&q=80");
}

.gallery-item:nth-child(6) {
    background-image: url("https://images.unsplash.com/photo-1600334089648-b0d9d3028eb2?auto=format&fit=crop&w=900&q=80");
} */

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 20px;
    border-bottom: 1px solid var(--beige);
    text-align: left;
}

th {
    color: var(--green);
    background: #faf6ef;
}

.pricing-note {
    margin-top: 18px;
    color: var(--muted);
}

.blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    overflow: hidden;
    padding: 0;
}

/* .blog-card-image {
    height: 170px;
    background-size: cover;
    background-position: center;
} */

.blog-card-image {
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-card-content {
    padding: 24px;
}

.blog-card time {
    color: var(--muted);
    font-size: 0.9rem;
}

.google-reviews-section {
    width: 100%;
    max-width: none;
    padding-left: max(17px, calc((100% - 1120px) / 2));
    padding-right: max(17px, calc((100% - 1120px) / 2));
    background: var(--green);
    color: var(--cream);
}

.google-reviews-section .eyebrow {
    color: #dcc39c;
}

.reviews-intro,
.reviews-note {
    color: rgba(247, 241, 231, 0.82);
}

.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.rating-summary strong {
    font-size: 2rem;
    margin-right: 10px;
}

.rating-summary span {
    color: #f3c96b;
    letter-spacing: 0.06em;
}

.rating-summary p {
    margin: 0;
}

.review-grid {
    grid-template-columns: repeat(3, 1fr);
}

.review-card,
blockquote {
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--cream);
}

.review-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.review-card-top span {
    color: #f3c96b;
    white-space: nowrap;
}

.review-card small {
    color: rgba(247, 241, 231, 0.72);
}

.contact-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d9cbb5;
    border-radius: 18px;
    padding: 14px 15px;
    font: inherit;
    background: #fffaf3;
}

textarea {
    resize: vertical;
}

.form-status {
    color: var(--green);
    font-weight: 700;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.lightbox.open {
    display: grid;
}

.lightbox-content {
    width: min(900px, 100%);
    color: var(--white);
    text-align: center;
}

.lightbox-image {
    height: min(70vh, 620px);
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    border: 0;
    color: var(--white);
    background: transparent;
    font-size: 3rem;
    cursor: pointer;
}

.site-footer {
    padding: 44px 24px;
    text-align: center;
    color: var(--cream);
    background: #10291d;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .main-nav {
        gap: 10px;
        font-size: 0.84rem;
    }

    .brand-logo {
        width: 118px;
    }
}

@media (max-width: 860px) {
    .site-header {
        border-radius: 28px;
    }

    .nav-toggle {
        display: block;
        order: 3;
    }

    .language-switcher {
        order: 2;
         margin-left: 5px;
    }

    .main-nav {
        position: fixed;
        inset: 82px 14px auto 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        border-radius: 24px;
        background: var(--cream);
        box-shadow: var(--shadow);
        font-size: 1rem;
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .feature-grid {grid-template-columns: 1fr}
    .blog-grid,
    .review-grid,
    .split,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-card {
        min-height: 340px;
    }

    .rating-summary {
        align-items: flex-start;
        border-radius: 24px;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 130px;
    }

    h1 {
        font-size: clamp(2.8rem, 15vw, 4.6rem);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    

    .site-header {
        top: 10px;
        width: calc(100% - 18px);
        /* padding: 10px 12px; */
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .brand-logo {
        width: 92px;
        height: 42px;
    }

    .language-button {
        padding: 6px 8px;
        font-size: 0.82rem;
    }

    .brand small {
        display: none;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* padding-bottom: 12px;
        padding-top: 12px; */
    }

    .gallery-item {
        flex: 0 0 86%;
        min-width: 86%;
        height: 320px;
        scroll-snap-align: center;
        display: block;
        border: none;
        padding: 0;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

    }



.gallery-item.hidden {
    display: none !important;
}

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }
}

.hidden {
    display: none !important;
}


.blog-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
}

.blog-modal.active {
    display: flex;
}

.blog-modal-content {
    position: relative;
    width: min(760px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    color: #2f2f2f;
    border-radius: 22px;
    padding: 36px;
}

.blog-modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.blog-modal-content h2 {
    margin-bottom: 20px;
}

.blog-modal-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

       .house-specs {
            padding-top: 0;
        }

        .specs-card {
            max-width: 980px;
            margin: 0 auto;
            padding: 24px;
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.72);
            box-shadow: var(--shadow);
        }

        .specs-intro {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-top: 18px;
        }

        .spec-item {
            padding: 16px 14px;
            border-radius: calc(var(--radius) - 6px);
            background: rgba(255, 255, 255, 0.68);
            text-align: center;
        }

        .spec-item strong {
            display: block;
            font-size: 1.4rem;
            line-height: 1.1;
        }

        .spec-item span {
            display: block;
            margin-top: 6px;
            font-size: 0.9rem;
            opacity: 0.78;
        }

        .spec-details {
            margin-top: 18px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            padding-top: 14px;
        }

        /* .spec-details summary {
            cursor: pointer;
            font-weight: 700;
            list-style: none;
        } */

        .spec-details summary {
            cursor: pointer;
            font-weight: 700;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .spec-details summary::-webkit-details-marker {
            display: none;
        }

        /* .spec-details summary::after {
            content: "+";
            float: right;
            font-size: 1.2rem;
        } */

        .spec-details summary::after {
            content: "+";
            font-size: 1.2rem;
            flex-shrink: 0;
            margin-left: 12px;
        }

        /* .spec-details[open] summary::after {
            content: "−";
        } */

        .spec-details[open] summary::after {
            content: "−";
        }

        .sleeping-layout {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .sleeping-layout article {
            padding: 14px;
            border-radius: calc(var(--radius) - 8px);
            background: rgba(255, 255, 255, 0.62);
        }

        .sleeping-layout h3 {
            margin-bottom: 6px;
            font-size: 1rem;
        }

        .sleeping-layout p {
            margin: 0;
        }

        .spec-note {
            margin-top: 14px;
            margin-bottom: 0;
            font-size: 0.95rem;
            opacity: 0.82;
        }

        @media (max-width: 780px) {
            .specs-intro,
            .sleeping-layout {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 520px) {
            .specs-card {
                padding: 18px;
            }

            .specs-intro {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            .spec-item {
                padding: 12px 10px;
            }

            .spec-item strong {
                font-size: 1.25rem;
            }

            .spec-item span {
                font-size: 0.82rem;
            }

            .sleeping-layout {
                grid-template-columns: 1fr;
            }
        }