/* ===== EVINAR BASE CSS ===== */
/* Core variables, typography, resets, and shared utility classes */

:root {
    /* Modro-siva paleta — tech/UI */
    --blue-1: #9fb3c1;
    --blue-2: #8199ab;
    --blue-3: #6f8596;
    --blue-4: #4a5568;
    --blue-5: #31424f;
    --blue-dark: #233241;
    /* Bordeaux/Wine — primarni akcent, CTA, brand */
    --wine: #6b2737;
    --wine-dark: #4a1625;
    --wine-light: #7a2f40;
    --wine-highlight: #722f37;
    /* Zlato/Olivno — premium akcent */
    --gold-1: #8b7d3a;
    --gold-2: #6f6a2a;
    --gold-light: #a39b6b;
    /* Ozadja in nevtralne */
    --bg: #ffffff;
    --bg-light: #f3f5f7;
    --bg-soft: #e8ecf0;
    --border: #e0e5ea;
    /* Tekst — topli nevtrali */
    --text: #2f2f2f;
    --text-sec: #59514b;
    --text-muted: #6b7280;
    --font-h: "Playfair Display", Georgia, serif;
    --font-b: "Inter", sans-serif;
    --r: 14px;
    --rl: 24px;
    --sh-sm: 0 8px 20px rgba(31, 49, 64, 0.06);
    --sh-md: 0 18px 40px rgba(31, 49, 64, 0.1);
    --sh-lg: 0 28px 64px rgba(31, 49, 64, 0.16);
    --nav-h: 72px;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

/* Reset and box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML and body base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-b);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(circle at 12% 8%, rgba(155, 177, 195, 0.1), transparent 30%), radial-gradient(circle at 88% 18%, rgba(95, 126, 153, 0.08), transparent 26%), radial-gradient(circle at 50% 100%, rgba(114, 47, 55, 0.04), transparent 34%);
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        opacity: 0.18;
        background-image: var(--grain);
        mix-blend-mode: multiply;
    }

/* Images and links */
img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-2);
    border-radius: 3px;
}

/* Containers and layout utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 112px 0;
    position: relative;
    z-index: 1;
}

/* Manjši stranski rob in nižji navpični razmik na mobilnih napravah —
   da vsebina ni stisnjena ob rob in da ne povzroča vodoravnega drsenja. */
@media (max-width: 720px) {
    .container {
        padding: 0 20px;
    }
    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 56px 0;
    }
}

.tc {
    text-align: center;
}

/* Tags */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 100px;
    margin-bottom: 18px;
    font-family: var(--font-b);
}

.tag-blue {
    color: var(--blue-3);
    background: rgba(129, 153, 171, 0.1);
    border: 1px solid rgba(129, 153, 171, 0.22);
}

.tag-gold {
    color: var(--gold-2);
    background: rgba(139, 125, 58, 0.12);
    border: 1px solid rgba(139, 125, 58, 0.25);
}

.tag-white {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-h);
    color: var(--text);
    line-height: 1.14;
}

h1 {
    font-size: clamp(3rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    max-width: 760px;
}

h2 {
    font-size: clamp(2.1rem, 3.2vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.45rem, 2.2vw, 1.625rem);
    font-weight: 500;
    line-height: 1.24;
    color: #4a4a4a;
}

h4 {
    font-family: var(--font-b);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}


p {
    font-size: 1.0625rem;
    color: var(--text-sec);
    line-height: 1.65;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-sec);
    line-height: 1.68;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--font-b);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--wine);
    color: #fff;
    box-shadow: 0 14px 30px rgba(107, 39, 55, 0.22);
}

    .btn-primary:hover {
        background: var(--wine-dark);
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(107, 39, 55, 0.28);
    }

.btn-outline {
    background: #fff;
    color: var(--blue-4);
    border: 1.5px solid rgba(74, 85, 104, 0.22);
    box-shadow: none;
}

    .btn-outline:hover {
        background: var(--bg-soft);
        color: var(--blue-5);
        border-color: var(--blue-4);
        transform: translateY(-2px);
    }

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.btn-white {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--blue-5);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.16);
}

    .btn-white:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(16, 24, 40, 0.22);
    }

.btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

.d4 {
    transition-delay: 0.4s;
}

/* Page fade transitions */
body.page-fade {
    opacity: 0;
    transition: opacity 0.32s ease, transform 0.32s ease;
    transform: translateY(10px);
}

    body.page-fade.page-ready {
        opacity: 1;
        transform: none;
    }

/* General element transitions */
.card, .feat-card, .integ-card, .price-card, .module-row, .mega-menu, .hero-stat, .btn, .mod-tab, .ps-step-icon, .gm-cell img, .nav-link {
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.btn-primary:hover, .btn-outline:hover, .btn-ghost:hover, .btn-white:hover {
    filter: saturate(1.02);
}

.card:hover, .module-row:hover, .price-card:hover, .integ-card:hover, .feat-card:hover {
    backdrop-filter: blur(10px);
}

.hero-video-overlay, .hero::after {
    backdrop-filter: blur(1.5px);
}

/* Responsive media queries */
@media (max-width: 1100px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-grid, .mod-panel.active, .ps-section {
        grid-template-columns: 1fr;
    }

        .ps-section.rev {
            direction: ltr;
        }

    .ps-text {
        padding: 52px 36px;
    }

    .integ-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-mosaic, .gallery-mosaic.placeholders {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gm-cell.tall {
        grid-row: span 1;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-photo-accent {
        display: none;
    }

    .about-badge {
        top: auto;
        bottom: 16px;
        left: 16px;
    }

    .mod-tabs {
        flex-wrap: wrap;
    }

    .section {
        padding: 88px 0;
    }
}

@media (max-width: 680px) {
    .nav-links, .nav-cta .btn-outline {
        display: none;
    }

    .dropdown-menu {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .feat-grid, .pricing-grid, .integ-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    .price-card.featured {
        transform: none;
    }

    .gallery-mosaic, .gallery-mosaic.placeholders {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Positioning z-index layer */
.site-header, .hero, .page, .content, main, footer, .marquee-strip, .stats-band {
    position: relative;
    z-index: 1;
}

/* Accessibility — izklopi animacije za uporabnike ki to preferirajo v OS */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }

    #scroll-progress {
        display: none;
    }
}

.vbi-validation-error {
    color: red;
}

.validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

    .validation-summary-errors ul li {
        list-style-type: none;
    }



/* ===== COOKIE SETTINGS MODAL ===== */

.cookie-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(31, 49, 64, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cookieFadeIn 0.25s ease;
}

@keyframes cookieFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-settings-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(31, 49, 64, 0.18), 0 2px 8px rgba(31, 49, 64, 0.08);
    padding: 36px 32px 28px;
    animation: cookieSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

    .cookie-settings-close:hover {
        background: var(--bg-light, #f3f5f7);
        color: var(--text, #2f2f2f);
    }

.cookie-settings-title {
    font-family: var(--font-a, 'Playfair Display', serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text, #2f2f2f);
    margin: 0 0 8px;
}

.cookie-settings-desc {
    font-family: var(--font-b, Inter, sans-serif);
    font-size: 0.875rem;
    color: var(--text-sec, #59514b);
    line-height: 1.55;
    margin: 0 0 24px;
}

/* Toggle group */
.cookie-settings-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(129, 153, 171, 0.1);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 8px;
    padding-left: 4px;
    padding-right: 4px;
}

    .cookie-toggle:last-child {
        border-bottom: none;
    }

    .cookie-toggle:hover {
        background: rgba(107, 39, 55, 0.02);
    }

    /* Custom toggle switch */
    .cookie-toggle input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.cookie-toggle-slider {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.25s ease;
}

    .cookie-toggle-slider::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--wine, #6b2737);
}

    .cookie-toggle input:checked + .cookie-toggle-slider::after {
        transform: translateX(20px);
    }

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: #a3b1bd;
    opacity: 0.7;
    cursor: not-allowed;
}

    .cookie-toggle input:disabled + .cookie-toggle-slider::after {
        transform: translateX(20px);
    }

/* Text next to toggle */
.cookie-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .cookie-toggle-text strong {
        font-family: var(--font-b, Inter, sans-serif);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text, #2f2f2f);
    }

    .cookie-toggle-text span {
        font-family: var(--font-b, Inter, sans-serif);
        font-size: 0.8rem;
        color: var(--text-muted, #6b7280);
        line-height: 1.4;
    }

/* Actions */
.cookie-settings-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(95, 126, 153, 0.22);
    background: #fff;
    font-family: var(--font-b, Inter, sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text, #2f2f2f);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

    .cookie-btn-save:hover {
        background: var(--bg-light, #f3f5f7);
        border-color: rgba(95, 126, 153, 0.36);
        transform: translateY(-1px);
    }

.cookie-btn-accept-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    background: var(--wine, #6b2737);
    font-family: var(--font-b, Inter, sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(107, 39, 55, 0.22);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

    .cookie-btn-accept-all:hover {
        background: var(--wine-dark, #4a1625);
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(107, 39, 55, 0.3);
    }

/* Responsive */
@media (max-width: 520px) {
    .cookie-settings-panel {
        padding: 28px 20px 22px;
        border-radius: 16px;
    }

    .cookie-settings-title {
        font-size: 1.15rem;
    }

    .cookie-settings-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn-save,
    .cookie-btn-accept-all {
        width: 100%;
        justify-content: center;
    }
}

/* LOGIN BUTTON */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--wine, #6b2737);
    background: transparent;
    font-family: var(--font-b, Inter, Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--wine, #6b2737);
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

    .btn-login:hover {
        background: var(--wine, #6b2737);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(107, 39, 55, 0.2);
    }