html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 5px; 
}

/* --- Stilovi linkova desktop navigacije --- */
nav a, #campi-link {
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    text-decoration: none;
}

nav a:hover, #campi-link:hover {
    color: #6B7280;
    transform: scale(1.05);
}

.dark nav a:hover, .dark #campi-link:hover {
    color: #D9AB63;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #6B7280;
    transform-origin: bottom center;
    transition: transform 0.3s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
}

.dark nav a::after {
    background-color: #D9AB63;
}

nav a.active {
    color: #D9AB63 !important;
    font-weight: bold;
}

nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #D9AB63;
    transform-origin: bottom center;
}

/* --- Hover efekt za gumb za promjenu teme --- */
.dark #theme-toggle:hover {
    color: #D9AB63;
}

/* --- Hover efekt za ikonu mobilnog izbornika --- */
#mobile-menu-toggle:hover svg {
    stroke: #4A5568;
}
.dark #mobile-menu-toggle:hover svg {
    stroke: #D9AB63;
}

/* --- Stilovi linkova mobilnog izbornika --- */
#mobile-menu a {
    transition: color 0.2s ease-in-out;
}
#mobile-menu a:hover {
    color: #6B7280;
}
.dark #mobile-menu a:hover {
    color: #D9AB63;
}
#mobile-menu a.active {
    font-weight: bold;
    color: #D9AB63;
}

/* --- Stilovi kartica s cijenama i hover efekt --- */
.price-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 0 10px 3px rgba(107, 114, 128, 0.2);
}

.dark .price-card {
    background-color: #1F1E1B;
    border: 1px solid #4A5568;
}

.dark .price-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 0 10px 5px rgba(217, 171, 99, 0.4);
}

/* --- Hero sekcija --- */
:root {
    color-scheme: light dark;
    --hero-image-light: url('slike/hero_day.jpg');
}

.dark {
    --hero-image-dark: url('slike/hero_night.jpg');
}

#naslovna {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#naslovna::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-image-light);
    background-size: cover;
    background-position: center center;
    z-index: -1;
    transition: background-image 0.3s ease-in-out;
}

.dark #naslovna::before {
    background-image: var(--hero-image-dark);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 20px;
}

#logo-container img {
    max-width: clamp(280px, 85vw, 700px);
    max-height: 55vh;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); /* Sjena za bolju vidljivost */
}

#logo-container.fade-out img {
    opacity: 0;
    transform: scale(0.95);
}

/* --- Header --- */
#header {
    position: sticky;
    top: 0;
    height: 64px;
    display: flex;
    align-items: center;
    background-color: rgba(247, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    z-index: 50;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark #header {
    background-color: rgba(34, 33, 30, 0.8);
    box-shadow: 0 1px 3px rgba(213, 196, 167, 0.1);
}

#header.scrolled {
    background-color: rgba(247, 250, 252, 0.7);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.dark #header.scrolled {
    background-color: rgba(34, 33, 30, 0.7);
    box-shadow: 0 4px 6px -1px rgba(213, 196, 167, 0.1), 0 2px 4px -2px rgba(213, 196, 167, 0.1);
}

/* --- Naslovi sekcija (općenito) --- */
h2, h3, h4 {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
}

h2::before, h2::after,
h3::before, h3::after,
h4::before, h4::after {
    content: "";
    flex-grow: 1;
    background: rgba(45, 55, 72, 0.3);
    height: 1px;
    margin: 0 15px;
}

.dark h2::before, .dark h2::after,
.dark h3::before, .dark h3::after,
.dark h4::before, .dark h4::after {
    background: rgba(237, 220, 189, 0.3);
}

/* --- Animacija mobilnog izbornika --- */
#mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    z-index: 40;
    background-color: rgba(247, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark #mobile-menu {
    background-color: rgba(34, 33, 30, 0.95);
    box-shadow: 0 4px 6px rgba(213, 196, 167, 0.1);
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* --- Responzivne prilagodbe --- */
@media (max-width: 768px) {
    #naslovna {
        min-height: 60vh;
        height: auto;
    }
    .hero-content {
        padding-top: 80px;
    }
    #logo-container img {
        max-width: 80vw;
    }
    section {
        scroll-margin-top: 5px;
    }
    .social-icons {
        justify-content: center;
    }
    #header .ml-4 {
        margin-left: auto;
    }
}

/* --- Stilovi za prekidač dan/noć teme --- */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
    margin-left: auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:#5a879f;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 20px;
    left: 2px;
    bottom: 2px;
    z-index: 2;
    background-color: #e8e8e8;
    transition: .4s;
}

.sun svg {
    fill: #eddcbd;
    position: absolute;
    top: 6px;
    left: 36px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.moon svg {
    fill: #eddcbd;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
    animation: tilt 5s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

@keyframes tilt {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.switch input:checked + .slider {
    background-color: #183153;
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px #183153;
}

.switch input:checked + .slider:before {
    transform: translateX(30px);
}

/* --- Stilovi za nove opcije unutar kartica cjenika --- */
.options-container .form-control {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease-in-out;
    padding: 0.25rem;
}

.options-container .form-control:hover {
    background-color: rgba(74, 85, 104, 0.08);
}
.dark .options-container .form-control:hover {
    background-color: rgba(217, 171, 99, 0.12);
}

.options-container input[type="radio"],
.options-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid #A0AEC0;
    margin-right: 0.5em;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    flex-shrink: 0;
    border-radius: 50%;
}

.dark .options-container input[type="radio"],
.dark .options-container input[type="checkbox"] {
    border-color: #718096;
}

.options-container input[type="radio"]:checked::after,
.options-container input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 85%;
    background-repeat: no-repeat;
    background-position: center;
}

.options-container input[type="radio"]:checked,
.options-container input[type="checkbox"]:checked {
    background-color: #4A5568;
    border-color: #4A5568;
}
.dark .options-container input[type="radio"]:checked,
.dark .options-container input[type="checkbox"]:checked {
    background-color: #D9AB63;
    border-color: #D9AB63;
}

.options-container .form-control.selected-option {
    background-color: rgba(74, 85, 104, 0.15) !important;
    font-weight: 600;
}
.dark .options-container .form-control.selected-option {
    background-color: rgba(217, 171, 99, 0.20) !important;
}

.price-card .service-description {
    min-height: 40px;
}

#cjenik .price-card > h4::before,
#cjenik .price-card > h4::after {
    display: none;
}

#cjenik .price-card > h4 {
    justify-content: center;
}

.title-no-lines::before,
.title-no-lines::after {
    display: none;
}

.title-no-lines {
    justify-content: center;
}

/* --- Stilovi za ikone društvenih mreža u hero sekciji --- */
.hero-social-icons {
    position: absolute;
    top: 20px; /* Udaljenost od vrha, ispod headera */
    right: 20px;
    display: flex;
    flex-direction: row; /* Vertikalno pozicioniranje */
    gap: 16px; /* Razmak između ikona */
    z-index: 10;
}

.hero-social-icons a {
    color: rgba(255, 255, 255, 0.9); /* Bijela boja s blagom prozirnošću */
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-social-icons a:hover {
    transform: scale(1.15);
    color: #D9AB63; /* Zlatna boja (nightAccent) na hover */
}

.hero-social-icons svg {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); /* Sjena za bolju vidljivost */
}

/* Prilagodbe za manje ekrane */
@media (max-width: 768px) {
    .hero-social-icons {
		flex-direction: column;
        top: 20px;
        right: 20px;
        gap: 12px;
    }
    .hero-social-icons svg {
        width: 26px;
        height: 26px;
    }
}