:root {
    --primary-color: #8B6A4E; /* Srednje tamni taupe */
    --secondary-color: #F5F0E9; /* Svijetla krem/eggshell */
    --accent-color: #D4C2AC; /* Topla bež */
    --text-color: #111111; /* Tamnosiva/crna za standardni tekst */
    --heading-color: #3B3330; /* Vrlo tamna sivo-smeđa za tekst preko svijetlih pozadina */
    --light-bg: #F5F0E9; /* Svijetla krem */
    --warm-bg: #D4C2AC; /* Topla bež za istaknute blokove */
    --dark-bg: #8B6A4E; /* Srednje tamni taupe */
    --white-text: #FFFFFF; /* Čisti bijeli tekst */
    --font-main: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.8s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 2;
    background-color: var(--secondary-color); /* Svijetla krem */
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 300;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 200; /* Thinner font */
    line-height: 1.4;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 200;
    letter-spacing: 6px;
    color: var(--white-text); /* Bijeli tekst preko fotografija */
    font-style: normal;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: 2px;
    font-weight: 200;
    color: var(--heading-color); /* Vrlo tamna sivo-smeđa */
    position: relative;
    padding-bottom: 30px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
    color: var(--heading-color); /* Vrlo tamna sivo-smeđa */
    font-style: normal;
    text-transform: none;
    letter-spacing: 1.5px;
}

p {
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

strong {
    font-weight: 400;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.5s ease;
}

/* Scroll Animation Classes */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Pricing Section Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.pricing-column h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 15px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(212, 194, 172, 0.3); /* Topla bež */
}

.pricing-item:last-child {
    border-bottom: none;
}

.service-name {
    font-size: 1.1rem;
    color: var(--heading-color);
    font-weight: 300;
    padding-right: 20px;
    background-color: transparent;
    z-index: 1;
}

.service-price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 400;
    white-space: nowrap;
}

.service-detail {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
    font-weight: 300;
}

/* Responsive Pricing */
@media (max-width: 800px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-warm {
    background-color: var(--warm-bg);
}

.text-center { text-align: center; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.8s ease;
}

.navbar.scrolled {
    background-color: rgba(245, 240, 233, 0.98); /* Svijetla krem s transparentnošću */
    border-bottom: 1px solid rgba(212, 194, 172, 0.3); /* Topla bež */
}

.logo-img {
    height: 50px;
    width: auto;
    transition: opacity 0.5s ease, filter 0.5s ease;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.navbar.scrolled .logo-img {
    filter: brightness(0) drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    opacity: 0.9;
}

.logo-text {
    font-family: var(--font-main);
    color: var(--white-text); /* Bijeli tekst preko fotografija */
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: none;
    font-style: normal;
    transition: color 0.5s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar.scrolled .logo-text {
    color: var(--text-color); /* Tamnosiva/crna */
    text-shadow: none;
}

/* Menu Overlay */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(245, 240, 233, 0.98); /* Svijetla krem */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 998;
}

.nav-links.nav-active {
    transform: translateY(0);
}

.nav-links a {
    font-size: 1.8rem;
    font-weight: 200;
    font-style: normal;
    text-transform: none;
    letter-spacing: 4px;
    color: var(--heading-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, color 0.3s ease;
}

.nav-links.nav-active a {
    opacity: 1;
    transform: translateY(0);
}

.nav-links.nav-active li:nth-child(1) a { transition-delay: 0.4s; }
.nav-links.nav-active li:nth-child(2) a { transition-delay: 0.5s; }
.nav-links.nav-active li:nth-child(3) a { transition-delay: 0.6s; }
.nav-links.nav-active li:nth-child(4) a { transition-delay: 0.7s; }
.nav-links.nav-active li:nth-child(5) a { transition-delay: 0.8s; }
.nav-links.nav-active li:nth-child(6) a { transition-delay: 0.9s; }

.nav-links a:hover {
    color: var(--primary-color);
}

/* Menu Icon */
.burger {
    display: block;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.burger div {
    width: 40px;
    height: 1px;
    background-color: var(--white-text); /* Bijeli preko fotografija */
    margin: 10px 0;
    transition: all 0.5s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar.scrolled .burger div {
    background-color: var(--text-color); /* Tamnosiva/crna */
    box-shadow: none;
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--text-color);
}

.burger.toggle .line2 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Position content at bottom */
    text-align: center;
    background-color: var(--secondary-color); /* Svijetla krem */
    overflow: hidden;
    padding-bottom: 60px; /* Space from bottom - lowered */
}

/* Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Optional Overlay to ensure text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* Very light overlay to blend images */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 30px;
    width: 100%;
}

/* Rotating Slogan */
.rotating-slogan {
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
}

.rotating-slogan .slogan-text {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.3rem;
    color: var(--white-text); /* Bijeli tekst preko fotografija */
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.rotating-slogan .slogan-text.active {
    opacity: 1;
    position: relative;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 4rem;
    color: var(--white-text); /* Bijeli tekst preko fotografija */
    letter-spacing: 2px;
    font-weight: 300;
    font-style: normal;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: relative;
    min-height: 60px; /* Prevent layout shift */
    text-align: center;
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 20px 70px;
    background-color: transparent;
    color: var(--white-text);
    border: 1px solid var(--white-text);
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 300;
    transition: all 0.5s ease;
    font-style: normal;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: var(--white-text);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Content Blocks */
.content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.text-block p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-side {
    padding-right: 20px;
}

.split-layout.reverse-layout .text-side {
    padding-right: 0;
    padding-left: 20px;
}

.feature-list {
    margin: 2rem 0;
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding: 2rem 0;
}

.feature-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 300;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 25px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Smaller Images */
.image-side {
    display: flex;
    justify-content: center;
}

.image-side img, .image-placeholder {
    width: 100%;
    max-width: 85%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background-color: var(--secondary-color); /* Svijetla krem */
    color: var(--accent-color);
    font-weight: 300;
    font-style: normal;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: none;
}

/* Process Cards */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-top: 80px;
}

.process-card {
    text-align: center;
    padding: 0;
    background: transparent;
}

.process-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

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

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color); /* Svijetla krem */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #BEB09E;
    font-weight: 300;
    font-style: normal;
    transition: transform 1s ease;
}

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

/* Contact Link - kept for popup */
.contact-link {
    color: #999;
    font-size: 1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 300;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Footer */
.footer-section {
    background-color: var(--white-text); /* Bijela pozadina */
    color: var(--heading-color);
    padding: 80px 0 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(59, 51, 48, 0.1); /* Svijetla linija */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0); /* Tamni logo na bijeloj pozadini */
    opacity: 0.9;
}

.footer-sub {
    font-size: 0.9rem;
    color: var(--heading-color); /* Vrlo tamna sivo-smeđa */
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-info {
    display: flex;
    gap: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    color: var(--primary-color); /* Srednje tamni taupe */
    font-size: 1.2rem;
}

.info-item p, .info-item a {
    font-size: 0.95rem;
    color: var(--heading-color); /* Vrlo tamna sivo-smeđa */
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.info-item a:hover {
    color: var(--primary-color); /* Srednje tamni taupe */
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(59, 51, 48, 0.2); /* Svijetla linija na bijeloj pozadini */
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--heading-color); /* Vrlo tamna sivo-smeđa */
    margin-bottom: 0;
    opacity: 0.7;
}

@media (max-width: 960px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .info-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--secondary-color); /* Svijetla krem */
    padding: 60px 40px;
    border-radius: 4px;
    width: 90%;
    max-width: 450px;
    border: 1px solid var(--accent-color);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--primary-color);
}

.popup-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-content h3 {
    color: var(--heading-color); /* Vrlo tamna sivo-smeđa */
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-style: normal;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 2px;
}

.popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 2px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: none;
    font-size: 0.85rem;
    background-color: var(--warm-bg); /* Topla bež */
    color: var(--heading-color);
    border: 1px solid var(--accent-color);
    transition: all 0.5s;
}

.popup-btn:hover {
    background-color: var(--accent-color);
    color: var(--heading-color);
}

/* Responsive */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; letter-spacing: 2px; }
    .rotating-slogan .slogan-text { font-size: 1.1rem; letter-spacing: 1px; }
    .rotating-slogan { min-height: 50px; }
    h2 { font-size: 2rem; }
    .hero { padding-bottom: 60px; }
    
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .text-side { padding-right: 0; }
    .split-layout.reverse-layout .text-side { padding-left: 0; }
    
    .image-side img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        margin-top: 20px;
    }
    
    .split-layout.reverse-layout {
        display: flex;
        flex-direction: column;
    }
    
    .split-layout.reverse-layout {
        flex-direction: column-reverse; 
    }
    .split-layout.reverse-layout .image-side img {
        margin-top: 30px;
        margin-bottom: 0;
    }
    
    .process-grid { grid-template-columns: 1fr; gap: 50px; }
    .gallery-grid { grid-template-columns: 1fr; }
    
    .navbar { padding: 20px 30px; }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}
