/* =============================================================================
   Stil Mont Onepage - Custom Styles
   ============================================================================= */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Font defaults */
body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #393D47;
}
::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e5c76b;
}

/* =============================================================================
   Lightbox
   ============================================================================= */

#lightbox-overlay {
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#lightbox-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

#lightbox-img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =============================================================================
   Scroll Reveal Animations
   ============================================================================= */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   Active Navigation Link
   ============================================================================= */

.nav-link.active-section {
    color: #D4AF37 !important;
}

/* =============================================================================
   Header scroll state
   ============================================================================= */

#masthead.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   Contact Form 7 Overrides
   ============================================================================= */

.wpcf7 {
    max-width: 100%;
}

.wpcf7 p {
    margin-bottom: 1rem;
}

.wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #393D47;
    margin-bottom: 0.375rem;
    font-family: 'Montserrat', sans-serif;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: #374151;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background-color: #D4AF37;
    color: #393D47;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.15s ease;
    width: auto;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #e5c76b;
}

.wpcf7 input[type="submit"]:active {
    transform: scale(0.98);
}

.wpcf7-response-output {
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

/* =============================================================================
   Custom logo responsive
   ============================================================================= */

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

@media (min-width: 768px) {
    .custom-logo-link img {
        max-height: 60px;
    }
}

/* =============================================================================
   WYSIWYG Service Description Content
   ============================================================================= */

.smo-wysiwyg-content p {
    margin-bottom: 1rem;
}

.smo-wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.smo-wysiwyg-content strong, .smo-wysiwyg-content b {
    font-weight: 700;
}

.smo-wysiwyg-content em, .smo-wysiwyg-content i {
    font-style: italic;
}

.smo-wysiwyg-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.smo-wysiwyg-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.smo-wysiwyg-content li {
    margin-bottom: 0.375rem;
}

.smo-wysiwyg-content a {
    color: #D4AF37;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.smo-wysiwyg-content a:hover {
    color: #393D47;
}

.smo-wysiwyg-content blockquote {
    border-left: 3px solid #D4AF37;
    padding-left: 1rem;
    color: #6b7280;
    font-style: italic;
    margin: 1rem 0;
}

/* =============================================================================
   Selection color
   ============================================================================= */

::selection {
    background-color: #D4AF37;
    color: #393D47;
}

::-moz-selection {
    background-color: #D4AF37;
    color: #393D47;
}

/* =============================================================================
   NAVIGATION DROPDOWN (desktop)
   ============================================================================= */

/* Ensure dropdown sits above page content */
.smo-dropdown-wrap {
    position: relative;
}

.smo-dropdown-menu {
    z-index: 60;
    white-space: nowrap;
}

/* Rotate caret when dropdown is open */
.smo-dropdown-wrap:hover .smo-dropdown-caret,
.smo-dropdown-wrap:focus-within .smo-dropdown-caret {
    transform: rotate(180deg);
}

/* Remove default link underlines inside dropdown */
.smo-dropdown-menu a {
    text-decoration: none;
}

/* =============================================================================
   MOBILE ACCORDION (Usluge sub-menu)
   ============================================================================= */

.smo-accordion-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* =============================================================================
   BLOG PAGINATION
   ============================================================================= */

/* paginate_links() outputs a plain <ul> when type='list' */
.smo-pagination,
nav[aria-label="Paginacija"] ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.smo-pagination .page-numbers,
nav[aria-label="Paginacija"] ul .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #393D47;
    text-decoration: none;
    background: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.smo-pagination .page-numbers:hover,
nav[aria-label="Paginacija"] ul .page-numbers:hover {
    background-color: #D4AF37;
    color: #393D47;
    border-color: #D4AF37;
}

.smo-pagination .page-numbers.current,
nav[aria-label="Paginacija"] ul .page-numbers.current {
    background-color: #D4AF37;
    color: #393D47;
    border-color: #D4AF37;
}

.smo-pagination .page-numbers.dots,
nav[aria-label="Paginacija"] ul .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

/* =============================================================================
   SERVICE PAGE — gallery placeholder slots
   ============================================================================= */

.smo-gallery-slot {
    background-color: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.smo-gallery-slot:hover {
    background-color: #f3f4f6;
}

/* =============================================================================
   BLOG POST — related service suggestion box
   ============================================================================= */

.smo-service-suggestion-box {
    clear: both;
    margin-top: 2.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.smo-service-suggestion-box h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #393D47;
    margin: 0 0 1rem 0;
}

.smo-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.smo-service-tag {
    display: inline-block;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.smo-service-tag:hover {
    background-color: #D4AF37;
    color: #393D47;
}

.smo-suggestion-cta {
    margin: 0;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.smo-suggestion-cta a {
    color: #D4AF37;
    text-decoration: none;
}

.smo-suggestion-cta a:hover {
    text-decoration: underline;
}
