/* LUP Theme - Current Version */
/* Custom styling for Lučka uprava Pula website */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto+Slab:wght@100..900&display=swap');

:root {
    /* Primary theme color - light blue */
    --cnvs-themecolor: #6ec1e4 !important;
    --cnvs-themecolor-rgb: 110, 193, 228;
    --bs-primary-rgb: 110, 193, 228;


    /* Typography customizations */
    --cnvs-h2-font-size: 2.5rem !important;
    --cnvs-body-font: 'DM Sans', sans-serif;
    --cnvs-secondary-font: 'Roboto Slab', serif;


    /* Service box styling */
    --service-box-border-radius: 16px;
    --service-box-padding: 1.5rem;
    --service-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.075);
    --service-box-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.075);

    /* Komunalni vezovi cards */
    --komunalni-card-bg: #F7F7F7;


    /* Mega menu nautical ports */
    --nautical-ports-img-height: 120px;
    --nautical-ports-img-border-radius: 0.375rem;
    --nautical-ports-h3-size: 16px;
    --nautical-ports-span-size: 12px;
}




/* Service boxes in Luka Pula section */
.service-box {
    border-radius: var(--service-box-border-radius) !important;
    transition: box-shadow 0.3s ease;
}

.service-box:hover {
    box-shadow: var(--service-box-hover-shadow) !important;
}

/* Komunalni vezovi cards with gray background */
.komunalni-card {
    background-color: var(--komunalni-card-bg) !important;
    border: 1px solid #EAEAEA !important;
}

/* Menu-3 style header styling */
.border-full-header #header-wrap {
    border: 3px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    margin: 15px;
}

.border-full-header .container {
    max-width: none;
}

/* Menu-3 primary menu styling */
.border-full-header .primary-menu > .menu-container > .menu-item > .menu-link {
    padding: 15px 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.border-full-header .primary-menu > .menu-container > .menu-item:hover > .menu-link,
.border-full-header .primary-menu > .menu-container > .menu-item.current > .menu-link {
    color: var(--cnvs-themecolor) !important;
}

/* Remove top blue line from all dropdown menus */
.mega-menu-content,
.sub-menu-container {
    border-top-color: white !important;
}

/* Enlarge header misc icons (search and accessibility) */
.header-misc-icon i {
    font-size: 1.3em;
}

/* Logo text styling */
.logo-text {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
}

/* Apply DM Sans font to body and common elements */
body,
.primary-menu .menu-link,
p, span, div, a, li, td, th,
.button, .form-control, .card-body {
    font-family: var(--cnvs-body-font);
}

/* Mega menu nautical ports styling */

#nautical-ports .portfolio-image img {
    width: 100%;
    height: var(--nautical-ports-img-height);
    object-fit: cover;
    border-radius: var(--nautical-ports-img-border-radius);
}

#nautical-ports .portfolio-desc h3 {
    font-size: var(--nautical-ports-h3-size) !important;
}

#nautical-ports .portfolio-desc span {
    font-size: var(--nautical-ports-span-size) !important;
}

/* Hide hover effects on mega menu items */
#nautical-ports .bg-overlay,
#nautical-ports .bg-overlay-content,
#nautical-ports .bg-overlay-bg {
    display: none !important;
}

/* Font Awesome icons in komunalni vezovi section */
.komunalni-card .fa-solid {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #000;
}





/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --cnvs-h2-font-size: 2rem; /* Smaller on mobile */
        --nautical-ports-img-height: 100px;
        --service-box-padding: 1rem;
    }

    /* Fix double gutter on mobile - override Bootstrap gutters */
    #nautical-ports.row {
        margin-left: 0;
        margin-right: 0;
    }

    #nautical-ports .portfolio-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --cnvs-h2-font-size: 1.75rem; /* Even smaller on small mobile */
        --nautical-ports-img-height: 80px;
    }

    /* Uniform spacing on small mobile */
    #nautical-ports .portfolio-item {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
        margin-bottom: 1rem;
    }
}

/* Text overlay mask for slider labels */
.text-overlay-mask {
    padding: 40px 40px 15px !important;
}

/* Subpages menu styling */
.subpage-link:hover {
    text-decoration: underline !important;
}

/* Linear gradient utility class */
.gradient-fade-30 {
    background: linear-gradient(to bottom, #F8F9FA 0%, white 50%);
}

.gradient-fade-30-reverse {
    background: linear-gradient(to top, #F8F9FA 0%, white 50%);
}

/* Putnički promet background image - simple and clean */
.card.dark.imagescale {
    min-height: 400px !important;
    overflow: hidden !important; /* Hide any overflow from negative margins */
}

.card.dark.imagescale .row.g-0 {
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
}

/* Remove gutter only from left background column */
.slider-column-no-gutter {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 400px !important;
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    left: -12px !important; /* Pull left to eliminate gutter */
}

/* Kenburns effect for background image */
.kenburns-bg {
    animation: kenburns 15s ease-in-out infinite alternate;
    transform-origin: right center;
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-width: 100px !important; /* Ensure minimum width */
    z-index: 1 !important;
}

@keyframes kenburns {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Mobile responsive fixes */
@media (max-width: 767.98px) {
    .card.dark.imagescale {
        min-height: auto !important;
    }

    /* Hide the image column on mobile */
    .slider-column-no-gutter {
        display: none !important;
    }

    /* Make the text column full width on mobile */
    .card.dark.imagescale .col-md-6:not(.slider-column-no-gutter) {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 1.5rem !important; /* Smaller padding on mobile (was p-5 = 3rem) */
    }
}

/* Project Detail Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 70px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    margin-left: 20px;
}

.timeline-content h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0.5rem;
}

.timeline-item.completed .timeline-marker {
    background-color: #28a745;
}

.timeline-item.active .timeline-marker {
    background-color: #ffc107;
}

.timeline-item:not(.completed):not(.active) .timeline-marker {
    background-color: #6c757d;
}


/* Faq accordion styles */
.toggle-border-alt.toggle-active,
.toggle-border-alt.toggle-active .toggle-header {
    border-color: var(--cnvs-themecolor);
    transition: all .3s ease;
}

.toggle-border-alt.toggle-active .toggle-header {
    --cnvs-toggle-title-color: var(--cnvs-contrast-0);
    background-color: var(--cnvs-themecolor);
}

/* Demo 2 */
.toggle-style-2.toggle-active,
.toggle-style-2.toggle-active .toggle-header {
    border-color: var(--cnvs-themecolor);
    transition: all .3s ease;
}

.toggle-style-2.toggle-active .toggle-header {
    --cnvs-toggle-title-color: var(--cnvs-contrast-0);
    background-color: var(--cnvs-themecolor);
}

/* Demo 3 */
.toggle-style-3 {
    --cnvs-toggle-header-bg: var(--bs-light);
}

.toggle-style-3.toggle-active,
.toggle-style-3.toggle-active .toggle-header {
    border-color: var(--cnvs-themecolor);
    transition: all .3s ease;
}

.toggle-style-3.toggle-active .toggle-header {
    --cnvs-toggle-title-color: var(--cnvs-contrast-0);
    background-color: var(--cnvs-themecolor);
}
