@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:wght@400;600&display=swap');

:root {
    --primary-color: #333;
    --header-bg: #2d2d2d;
    --texture-dark: url('../images/podloga-texture.png');
    --texture-antracit: url('../images/podloga-antracit.png');
    --accent-color: #D4B58E;
    --accent-bg: #E8DCC8;
    --text-color: #333;
    --light-bg: #F8F5EF;
    --white: #fff;
    --gradient-2: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    --gradient-3: linear-gradient(135deg, #2d2d2d, #404040);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lock scroll to container only – body/html must NOT scroll */
html {
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

/* ============================================
   Fullpage scroll-snap – ONLY this container scrolls
   .scroll-container: height 100vh, overflow-y scroll, scroll-snap-type
   Each section: height 100vh, scroll-snap-align: start
   No fullpage.js – pure CSS
   ============================================ */
.scroll-container,
main.snap-scroll-container {
    display: block;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    -webkit-scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar,
main.snap-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Each section = one fullscreen, snaps to start */
.snap-section,
.scroll-container > section {
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    -webkit-scroll-snap-align: start;
    box-sizing: border-box;
}


/* 2. i 3. ekran – galerija i digitalni salon: jedan ekran */
.gallery-section.snap-section {
    overflow-y: auto;
    height: 100vh;
    min-height: 100vh;
}

.digitalni-salon-section.snap-section {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.5rem 0.5rem;
    box-sizing: border-box;
}

.digitalni-salon-section.snap-section h2 {
    margin: 0 0 0.15rem 0;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.digitalni-salon-section.snap-section .digitalni-salon-tagline {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.digitalni-salon-section.snap-section .digitalni-salón-configurator-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

.digitalni-salon-section.snap-section .digitalni-salón-configurator-wrapper > .header-container,
.digitalni-salon-section.snap-section .digitalni-salón-configurator-wrapper > .model-selector {
    flex: 0 0 auto;
    margin: 0 0 0.35rem 0;
}

.digitalni-salon-section.snap-section .digitalni-salón-configurator-wrapper .model-selector {
    padding: 0.25rem 0;
    gap: 0.5rem;
}

.digitalni-salon-section.snap-section .digitalni-salón-configurator-wrapper .kitchen-preview {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

/* 4. ekran – kontakt, recenzije, footer; unutarnji scroll */
.section-4 {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.section-4-inner {
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-4-inner::-webkit-scrollbar {
    display: none;
}

/* Header – tamna traka, logo lijevo, nav + CTA desno */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--texture-antracit) center / cover no-repeat;
    background-color: var(--header-bg);
    z-index: 1000;
    padding: 0.75rem 1.5rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-header nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, opacity 0.2s;
}

.main-header nav a:hover {
    color: var(--accent-color);
}

.cta-header {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-header:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Hero overlay – jedna slika, bez spoja; lijevo vidljiva, prema desno fade */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--texture-antracit) center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 42%, transparent 65%);
    mask-image: linear-gradient(to right, black 0%, black 42%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 3rem 2rem 3rem 3rem;
    text-align: left;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.hero-ctas .cta-button {
    margin: 0;
}

/* Hero CTA – primarni (zlatni), sekundarni (outline) */
.hero-content .cta-primary,
.hero-content .cta-button {
    background: linear-gradient(90deg, #b8985c 0%, #c9a962 25%, #d4b58e 50%, #b8985c 75%, #9a7b4a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-content .cta-primary:hover,
.hero-content .cta-button:hover {
    background: linear-gradient(90deg, #c9a962 0%, #d4b58e 30%, #e0c49a 50%, #c9a962 70%, #b8985c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-content .cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.hero-content .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: #ddd0b8;
    transform: translateY(-1px);
}

.product-section {
    background: var(--texture-antracit) center / cover no-repeat;
    background-color: var(--header-bg);
    padding: 5rem 3%;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-item {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    margin: 1rem 0;
    color: white;
    font-size: 1.3rem;
}

.product-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.about-section {
    background: var(--texture-antracit) center / cover no-repeat;
    background-color: var(--header-bg);
    color: white;
    padding: 5rem 3%;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-section {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 4rem 2rem;
}

/* Tri jednake kolone na PC: Kontaktirajte nas | Formular | Google mapa */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 420px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-intro,
.contact-hours {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-phone {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
}

.contact-left .cta-button {
    margin-top: auto;
    align-self: flex-start;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    flex-shrink: 0;
}

/* Mapa desno – ista visina kao kolone */
.contact-map-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.contact-map-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.contact-map-label strong {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-map-label span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.contact-map-link {
    font-size: 0.85rem;
    color: var(--accent-bg);
    text-decoration: none;
}

.contact-map-link:hover {
    text-decoration: underline;
}

.contact-map-embed {
    flex: 1;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.contact-map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    color: var(--text-color);
}

.contact-form button {
    background: var(--accent-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #ddd0b8;
}

/* Footer – gore: Kontaktirajte nas lijevo, mapa desno; dno: uska traka (O Nama · Usluge · Galerija · ©) */
.site-footer {
    display: flex;
    flex-direction: column;
    background: var(--texture-antracit) center / cover no-repeat;
    background-color: var(--header-bg);
    color: var(--white);
}

/* Glavni blok: EM Wood (adresa, telefon, email) + društvene mreže u jednoj traci */
.footer-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    width: 100%;
}

.footer-emwood-block {
    text-align: left;
}

.footer-emwood-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.footer-emwood-block p {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    opacity: 0.95;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

/* Uska traka na dnu: O Nama · Usluge · Galerija · © 2026 EMWOOD – Sva Prava Zadržana */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    padding: 0.6rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.footer-bottom a:hover {
    opacity: 1;
}

.footer-dot {
    margin: 0 0.15rem;
    opacity: 0.6;
}

.footer-copy {
    margin: 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .main-header .header-inner {
        justify-content: space-between;
    }

    .main-header .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001;
        padding: 0.5rem 0.6rem;
        min-width: 44px;
        min-height: 44px;
        border-radius: 4px;
        color: #fff;
        font-size: 1.5rem;
    }

    .main-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--header-bg);
        padding: 4rem 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }

    .main-header.nav-open nav {
        right: 0;
    }

    .main-header nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-header nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-header nav ul a,
    .main-header nav .cta-header {
        display: block;
        padding: 1rem;
    }

    .main-header.nav-open .nav-overlay {
        display: block;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    /* Kontakt na mobitelu: jedna ispod druge za bolju preglednost */
    .contact-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 0;
        gap: 2.5rem;
    }

    .contact-left {
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .contact-form {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .contact-left .cta-button {
        align-self: center;
        margin-top: 1rem;
    }

    .contact-map-wrap {
        padding-bottom: 0.5rem;
    }

    .contact-map-embed {
        min-height: 220px;
    }

    .contact-map-embed iframe {
        min-height: 220px;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-emwood-block {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

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

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

/* Hamburger – sakriven na desktopu, bijel na tamnom headeru */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    padding: 0.25rem;
}

.gallery-section {
    display: block;
    padding: 0;
    overflow-y: auto;
    height: 100vh;
    min-height: 100vh;
    background: var(--texture-antracit) center / cover no-repeat;
    background-color: var(--header-bg);
    position: relative;
}

/* Na mobilnom – kartice na jedan ekran, bez unutarnjeg scrolla (vidi media query) */

/* 3 kartice horizontalno – Ormari, Kuhinje, Kupatila */
.gallery-cards-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    box-sizing: border-box;
}

.gallery-section.viewing-category .gallery-cards-wrapper {
    display: none !important;
}

.gallery-cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gallery-card {
    display: block;
    flex: 0 1 280px;
    width: 280px;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    background: rgba(0,0,0,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.gallery-section.cards-visible .gallery-card {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section.cards-visible .gallery-card:nth-child(1) { transition-delay: 0.15s; }
.gallery-section.cards-visible .gallery-card:nth-child(2) { transition-delay: 0.3s; }
.gallery-section.cards-visible .gallery-card:nth-child(3) { transition-delay: 0.45s; }

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card-title {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0,0,0,0.5);
}

/* Prikaz galerije slika (nakon klika na karticu) – u normalnom toku, sekcija skrola */
.gallery-category-view {
    display: none;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 4rem 2rem 3rem;
    box-sizing: border-box;
    background: var(--header-bg);
    background-image: var(--texture-antracit);
    background-size: cover;
    background-position: center;
}

.gallery-section.viewing-category .gallery-category-view {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Kad je galerija otvorena – sekcija skrola, sadržaj nije odsječen */
.gallery-section.viewing-category {
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.gallery-section.viewing-category .gallery-category.active {
    display: block !important;
}

.gallery-back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.gallery-back-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--white);
}

.gallery-category {
    display: none;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    padding: 0 0 2rem;
    box-sizing: border-box;
}

.gallery-category.active {
    display: block !important;
}

.gallery-category h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
    min-height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transition: bottom 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .gallery-section:not(.viewing-category) {
        overflow: hidden;
    }
    .gallery-cards-wrapper {
        min-height: 100vh;
        padding: 3.5rem 0.75rem 1rem;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
    }
    .gallery-cards {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .gallery-card {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
    }
    .gallery-card img {
        flex: 1 1 0;
        min-height: 0;
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
    }
    .gallery-card-title {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .gallery-item {
        height: 250px;
    }
}

/* Lightbox – zoom slike, lijevo/desno kroz galeriju */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox .lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox .lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-lightbox .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.gallery-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox .lightbox-prev,
.gallery-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.gallery-lightbox .lightbox-prev:hover,
.gallery-lightbox .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox .lightbox-prev {
    left: 1rem;
}

.gallery-lightbox .lightbox-next {
    right: 1rem;
}

.gallery-lightbox .lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.gallery-category {
    scroll-snap-align: start;
    padding: 5rem 3%;
}

.featured-categories {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 1.25rem 1rem 0.75rem;
}

.service-card .category-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--accent-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.service-card .category-btn:hover {
    background: #ddd0b8;
}

.category-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--accent-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.category-btn:hover {
    background: #ddd0b8;
}

/* Sekcija Isplanirajte savršen namještaj */
.plan-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    background: var(--header-bg);
}

.plan-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card {
    display: block;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-bottom: 3px solid var(--accent-color);
    text-decoration: none;
    color: var(--white);
    transition: background 0.2s;
}

.plan-card:hover {
    background: rgba(255,255,255,0.05);
}

.plan-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.plan-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.plan-image {
    min-height: 300px;
}

.plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Digitalni Salon – sekcija s brojačem i opcijama materijala */
.digitalni-salon-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.digitalni-salon-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.digitalni-salon-tagline {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.digitalni-salon-stats {
    display: none; /* uklonjeno iz headera/sekcije */
}

.digitalni-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.digitalni-stat-total .digitalni-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.digitalni-stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.digitalni-stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 0.25rem;
}

.digitalni-salon-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.digitalni-option {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.digitalni-option:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* Wrapper za kitchen-configurator – salon s slikom i točkama */
.digitalni-salón-configurator-wrapper {
    max-width: 1000px;
    margin: 2rem auto 0;
    min-height: 400px;
}

.digitalni-salón-configurator-wrapper .kitchen-preview {
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .plan-section {
        grid-template-columns: 1fr;
    }
    .plan-image { min-height: 250px; }
    .plan-image img { min-height: 250px; }
}

/* Prilagodba za mobilne uređaje */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    nav {
        margin-left: auto;
    }
    
    .menu-toggle {
        margin-left: 1rem;
    }
}

.nav-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    width: 100%;
}

.nav-social a {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0.8;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-social .fa-facebook {
    color: #4267B2;
}

.nav-social .fa-instagram {
    color: #E1306C;
}

.nav-social .fa-map-marker-alt {
    color: #EA4335;
}

/* Mobilna verzija */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-social {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-social a {
        font-size: 1.6rem;
        padding: 0.7rem;
    }
}

/* Testimonial – jednostavan citat */
.testimonials-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.testimonial-simple {
    max-width: 640px;
    margin: 0 auto;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-simple blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-simple cite {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-color);
    font-style: normal;
}

/* Google recenzije – učitava includes/google_reviews.php (JSON) preko JS */
.google-reviews-section {
    padding: 3rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.google-reviews-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.google-reviews-container {
    max-width: 800px;
    margin: 0 auto;
}

.google-reviews-loading,
.google-reviews-error {
    color: var(--text-color);
    opacity: 0.8;
}

.google-reviews-summary {
    margin-bottom: 2rem;
}

.google-reviews-rating {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.google-reviews-summary .google-reviews-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.google-reviews-total {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

.google-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.google-review-item {
    padding: 1.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.google-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.google-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.google-review-header strong {
    flex: 1;
    font-size: 1rem;
}

.google-review-time {
    font-size: 0.85rem;
    opacity: 0.8;
}

.google-review-stars {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.google-review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 1200px) {
    .hero-section {
        background-size: cover;
    }
}

.visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.visitor-counter i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .visitor-counter {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
} 