@charset "utf-8";

/* GLOBAL */
html {
    scroll-behavior: smooth;
}

/* Smaller H1 on narrow screens to improve readability */
@media (max-width: 480px) {

    .hero h1,
    .offers-hero h1,
    .offers-title {
        font-size: 30px !important;
        line-height: 1.06 !important;
    }
}

/* ensure anchors are not hidden under fixed header */
section {
    scroll-margin-top: 90px;
}

:root {
    --primary: #672d8b;
    --bg: #ffffff;
    --text: #111;
    --card: #f3f3f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: .3s ease;
}

/* Screen-reader only */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid rgba(103, 45, 139, 0.25);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(103, 45, 139, 0.25);
    outline-offset: 3px;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10% 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* fallback za browsere bez backdrop-filter podrške */
@supports not (backdrop-filter: blur(10px)) {
    header {
        background: rgba(255, 255, 255, 0.97);
        /* malo jača pozadina */
    }
}

.logo img {
    height: 50px;
    /* Disable reveal animation for header logo so it appears immediately */
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

nav a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #672d8b 0%, #8e44ad 50%, #111 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    /* reduce top padding so more hero content is visible on load */
    padding: 120px 0 80px;
    margin: 0;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: #ffffff20;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease forwards;
}

/* Ensure hero titles across index and oglasi visually match exactly */
.hero h1,
.offers-hero h1,
.offers-title,
.hero h2 {
    font-size: 42px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    max-width: 820px !important;
}

/* Nudge the whole hero content upward slightly so it's more visible on page load */
.hero-content {
    transform: translateY(-30px);
}

.hero p {
    max-width: 950px;
    margin-top: 40px;
    margin-right: auto;
    margin-bottom: 12px;
    opacity: .8;
    font-size: 20px;
    animation: fadeUp 1.3s ease forwards;
    display: block;
}

.hero p span {
    display: block;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 40px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    position: relative;
    top: -3px;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        top 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    animation: fadeUp 1.6s ease forwards;
}

.btn:hover {
    top: -4px;
    transform: scale(1.06);
    box-shadow: 0 10px 25px rgba(103, 45, 139, 0.35);
}

.btn:active {
    transform: scale(0.98);
}

/* HERO BOTTOM: logo+CTA row with explanatory text below */
.hero-bottom {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bottom-row {
    display: flex;
    flex-direction: row-reverse;
    /* place button left of logo */
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Vertical stacked blocks: button above logo and centered */
.hero-main-block,
.hero-offers-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* New explicit blocks for easier spacing control */
.hero-services-block,
.hero-offers-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.hero-services-block .hero-services-text,
.hero-offers-block .hero-offers-text {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.hero-services-block .btn {
    margin-top: 8px;
}

.hero-services-block .hero-main-logo {
    margin-top: 26px;
    height: 90px;
}

.hero-offers-block {
    margin-top: 26px;
}

.hero-offers-block .btn {
    margin-top: 8px;
}

.hero-offers-block img {
    margin-top: 8px;
    height: 130px;
}

/* Nudge the main CTA slightly upward to sit closer to the hero paragraph */
.hero-main-block .btn {
    position: static;
    top: auto;
    z-index: auto;
}

@media (max-width: 480px) {
    .hero-main-block .btn {
        position: static;
        top: auto;
    }
}

/* Keep CTA in normal flow but add small spacing so it sits closer to paragraph
   without moving the logo below. */
.hero-main-block .btn {
    position: static;
    margin-top: 8px;
}

.hero-main-block .hero-main-logo {
    margin-top: 12px;
}

/* Ensure offers block sits below the explanatory text and doesn't overlap */
.hero-offers-block {
    margin-top: 30px;
}

@media (max-width: 480px) {
    .hero-main-block .btn {
        margin-top: 6px;
    }

    .hero-main-block .hero-main-logo {
        margin-top: 10px;
    }

    .hero-offers-block {
        margin-top: 18px;
    }

    .hero-services-block .hero-main-logo {
        margin-top: 14px;
        height: 96px;
    }

    /* Pull offers logo slightly up on small screens so it sits closer to its CTA */
    .hero-offers-block img {
        margin-top: 4px;
        /* keep natural/desktop proportion on small screens - don't force smaller */
        height: 130px;
    }
}

/* Mobile adjustments: reduce hero top padding and smaller upward nudge */
@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        transform: translateY(-12px);
    }
}

.hero-offers-row {
    display: flex;
    flex-direction: row-reverse;
    /* place button left of offers logo */
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0px;
    transform: none;
    /* desktop-specific lift applied below to avoid affecting mobile */
    /* lift row closer to explanatory text (applied per-breakpoint below) */
}

@media (min-width: 769px) {
    .hero-offers-row {
        transform: translateY(-28px);
    }
}

/* Desktop-only: ensure hero has breathing room under fixed header at 100% zoom */
@media (min-width: 769px) {
    .hero {
        padding-top: 140px;
        /* increase from default 120px to avoid touching header */
    }
}

/* Index page: give the hero section a bit more vertical space on desktop only */
@media (min-width: 769px) {
    body.index-page .hero {
        padding-top: 160px;
        /* slightly larger on index page so title has breathing room */
    }
}

.hero-offers-row img {
    /* offers logo: larger */
    height: 130px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    animation: heroLogoIn 1.8s ease forwards, heroPulse 4s ease-in-out infinite;
    margin: 0;
    display: block;
}

.hero-bottom-row img.hero-main-logo,
.hero-main-logo {
    /* main hero logo: smaller */
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    animation: heroLogoIn 1.8s ease forwards, heroPulse 4s ease-in-out infinite;
    margin: 0;
    display: block;
}

.site-note-desc {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 600;
}

/* Base inner container for the site note/banner — ensures visible background */
.site-note-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, #ff8a00 0%, #ff3d00 100%);
    /* orange like badge */
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    max-width: 980px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    margin: 0 20px;
}

.site-note-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    /* position close button in the top-right of the banner */
    position: absolute;
    right: 6px;
    top: 6px;
    transform: none;
}

.site-note-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.site-note-title {
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .site-note-inner {
        max-width: 92%;
        padding: 10px 12px;
    }

    .site-note-title {
        font-size: 14px;
    }

    .site-note-desc {
        font-size: 12px;
    }

    .site-note-banner {
        top: 70px;
    }
}


/* Promo badge styles */
.site-note-banner {
    position: fixed;
    left: 0;
    right: 0;
    top: 76px;
    /* sits under fixed header */
    display: flex;
    justify-content: center;
    z-index: 1100;
}

/* Data-attribute equivalents used by JS fallback (primary styles live here).
   These selectors are less likely to be targeted by ad-blockers and serve
   as the primary styling source; JS inline styles remain as a final fallback. */
[data-site-note] {
    position: fixed;
    left: 0;
    right: 0;
    top: 76px;
    display: flex;
    justify-content: center;
    z-index: 1200;
}

[data-site-note-inner],
.site-note-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* center text horizontally */
    gap: 12px;
    background: linear-gradient(90deg, #7b3aa6 0%, #5a2b86 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    max-width: 980px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    margin: 0 20px;
    position: relative;
    /* so close button can be absolutely positioned */
    text-align: center;
    padding-right: 56px;
    /* reserve space for the close button */
}

[data-site-note-close],
.site-note-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    position: absolute;
    right: 6px;
    top: 6px;
    transform: none;
}

/* Mobile: slightly larger offset to preserve touch target and avoid overlap */
@media (max-width: 640px) {

    .site-note-close,
    [data-site-note-close] {
        right: 10px;
        top: 6px;
    }
}

/* SVG badge wrapper inserted by JS */
[data-badge-svg] {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

.cta-wrapper [data-badge-svg] {
    position: absolute;
    top: calc(50% + 16px);
    right: -20px;
    transform: translateY(-50%) rotate(-6deg);
    width: 90px;
    height: 24px;
}

/* Image-based sticker fallback (SVG/PNG) */
/* image fallback removed: handled server-side or by JS fallbacks; keep single `.cta-badge` */


.cta-badge.large {
    top: 12px;
    right: 12px;
    font-size: 14px;
    padding: 8px 12px;
    transform: rotate(-4deg);
}

/* Base promo-badge appearance (background + centered content) */
.cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    background: linear-gradient(90deg, #ff8a00 0%, #ff3d00 100%);
    color: #fff;
    padding: 0 6px;
    height: 24px;
    min-width: 34px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    line-height: normal;
}


/* Ensure offer-card is positioned so absolute badge can anchor */
.offer-card {
    position: relative;
}

/* CTA wrapper for buttons that can show promo badge */
.cta-wrapper {
    position: relative;
    display: inline-block;
}

.cta-wrapper {
    position: relative;
    display: inline-block;
}

/* Place promo badge centered vertically at the right edge of the button wrapper
   so it appears in the same position for buttons of different sizes and on mobile. */
.cta-wrapper .cta-badge {
    position: absolute;
    top: calc(50% + 16px);
    right: -20px;
    transform: translateY(-50%) rotate(-6deg);
    transform-origin: center center;
    pointer-events: none;
}


@media (max-width: 640px) {
    .cta-badge {
        font-size: 11px;
        padding: 0 8px;
        height: 28px;
        min-width: 44px;
        transform: rotate(-4deg);
    }

    .cta-badge.large {
        font-size: 12px;
        padding: 6px 9px;
        height: 30px;
    }

    /* Keep CTA badge vertically centered on small screens, adjust horizontal offset */
    .cta-wrapper .cta-badge {
        top: calc(50% + 14px);
        right: -8px;
        transform: translateY(-50%) rotate(-4deg);
        font-size: 11px;
        padding: 0 8px;
        height: 28px;
    }
}

/* Adjusted sticker position for bottom CTA: desktop slightly lower, mobile reverted */
#addOfferBtnBottom+.cta-badge {
    top: calc(50% + 22px);
    right: -20px;
    transform: translateY(-50%) rotate(-6deg);
}

@media (max-width: 640px) {

    /* revert mobile to previously good value */
    #addOfferBtnBottom+.cta-badge {
        top: calc(50% + 22px);
        right: -8px;
    }
}

.hero-offers-row .btn {
    margin: 0;
    position: relative;
    top: 0;
    transform: none;
}

.hero-bottom img {
    height: 130px;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    animation: heroLogoIn 1.8s ease forwards, heroPulse 4s ease-in-out infinite;
    margin: 0;
    display: block;
}

.hero-bottom .btn {
    margin: 0;
    position: relative;
    top: 0;
    /* override global slight top offset so button sits on same baseline */
    transform: none;
}

.hero-bottom-text {
    color: rgba(255, 255, 255, 0.95);
    margin: 12px auto 0;
    font-size: 16px;
    text-align: center;
    max-width: 820px;
    line-height: 1.4;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.hero-bottom-text .hero-bottom-line {
    display: block;
}

#oglasi .hero-bottom img {
    height: 160px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: heroLogoIn 1.8s ease forwards, heroPulse 4s ease-in-out infinite;
    margin-bottom: 20px;
}


/* ABOUT */
.about {
    padding: 100px 10%;
    margin-top: 100px;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

.about-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-text {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
}

#about h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
    display: block;
}




/* ABOUT responsive */
@media (max-width: 900px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 25px;
    }
}

/* SERVICES SECTION */
.services-section {
    padding: 100px 10%;
    background: linear-gradient(135deg, #672d8b 0%, #8e44ad 50%, #111 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 10px;
}

.services-section::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    background: #ffffff20;
    filter: blur(140px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.services-section h2 {
    position: relative;
    z-index: 1;
    font-size: 40px;
    margin-bottom: 60px;
}

.services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* On wider laptop screens (e.g. 15" 1366px) prefer 5 cards in one row on the index page */
@media (min-width: 1200px) {
    body.index-page .services {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
        /* slightly tighter gap to help fit 5 comfortably */
    }
}

/* CARD BASE */
.card {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(6px);
    transition: transform .6s ease, opacity .6s ease, filter .6s ease, box-shadow .4s ease, background .4s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.services .card h3 {
    margin-bottom: 20px;
}

.services .card p {
    margin-top: 14px;
    font-size: medium;
}

.more {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.portfolio-cta {
    margin-top: 70px;
    text-align: center;
}

.portfolio-cta p {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Mobile: add vertical gap so portfolio and contact buttons don't touch */
@media (max-width: 600px) {
    .portfolio-cta #contactUsBtn {
        display: inline-block;
        margin-left: 0 !important;
        margin-top: 16px !important;
    }
}

/* CONTACT */
.contact {
    padding: 120px 10%;
    text-align: center;
    margin: 80px 0 50px;
}

#contact h2 {
    margin-bottom: 25px;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 16px;
}

button.submit {
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

button.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(103, 45, 139, 0.25);
}

.form-message {
    margin-top: 20px;
    font-weight: 600;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    opacity: .75;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroLogoIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* SCROLL DOWN INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    /* compensate for upward shift of .hero-content so arrow sits lower than logos */
    transform: translateX(-50%) translateY(60px);
    z-index: 10;
}

.scroll-arrow {
    display: block;
    width: 26px;
    height: 26px;
    border-left: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid rgba(255, 255, 255, 0.9);
    transform: rotate(-45deg);
    animation: scrollDown 1.8s infinite ease-in-out;
    opacity: 0.85;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(8px) rotate(-45deg);
        opacity: 1;
    }

    100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.3;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 480px) {

    .hero-bottom .hero-offers-row img,
    .hero-offers-row img,
    .hero-offers-block img,
    .hero-bottom-row img.hero-main-logo,
    .hero-main-logo,
    .hero-services-block .hero-main-logo {
        height: 96px !important;
        width: auto !important;
        max-height: 96px !important;
    }
}

.hero {
    padding: 90px 20px 60px;
}

.hero h1 {
    font-size: 30px;
    line-height: 1.3;
    padding: 0 10px;
}

.hero p {
    font-size: 16px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.btn {
    padding: 12px 26px;
    font-size: 15px;
}

/* Prevent offers button text from wrapping on small screens and match main CTA size */
.hero-offers-row .btn {
    white-space: nowrap;
    padding: 12px 26px;
    font-size: 15px;
}

.hero-bottom img {
    height: 72px;
    margin-top: 0;
}

.hero-offers-row img {
    height: 72px;
    margin-top: 0;
}

.hero-offers-row {
    gap: 12px;
    transform: translateY(-24px);
    /* lift more on mobile to better match desktop spacing */
}

.hero-bottom {
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.hero-bottom .btn {
    top: 0;
}

.about {
    padding: 80px 8%;
    margin-top: 40px;
}

.about-text {
    font-size: 16px;
}

.services-section {
    padding: 80px 8%;
    margin-top: 60px;
}

.services-section h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.card {
    padding: 30px;
}

.contact {
    padding: 80px 8%;
    margin-top: 60px;
}

form {
    gap: 14px;
}

input,
textarea {
    font-size: 14px;
    padding: 10px 12px;
}

.about-text {
    max-width: 90%;
}


/* Small screens: about wrapper vertical (merged into main mobile block) */

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


/* ================= PORTFOLIO PAGE ================= */

.portfolio-hero {
    padding: 180px 10% 80px;
    text-align: center;
    background: linear-gradient(135deg, #672d8b 0%, #8e44ad 50%, #111 100%);
    color: #fff;
}

/* PORTFOLIO HERO CTA */

.portfolio-hero-cta {
    margin-top: 40px;
}

.portfolio-hero-cta .btn {
    margin-top: 22px;
}

.portfolio-hero-cta p {
    font-size: 18px;
    margin-bottom: 18px;
    opacity: .9;
}

.portfolio-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.portfolio-hero p {
    max-width: 700px;
    margin: auto;
    opacity: .85;
    font-size: 18px;
}

.portfolio-section {
    padding: 100px 10%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.portfolio-item {
    height: 280px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.portfolio-grid.print .portfolio-item {
    height: 380px;
}

.portfolio-item img {
    max-width: 80%;
    max-height: 80%;
    display: block;

    background: #fff;
    padding: 22px;
    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    transition: transform .35s ease;
}

/* LOGO i ID kartice */

.portfolio-grid.logos img,
.portfolio-grid.id-kartice img {
    object-fit: contain;
}

/* PRINT */

.portfolio-grid.print img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s;
}

.portfolio-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 20px;
}

.portfolio-item img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform .35s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cta {
    text-align: center;
    margin-top: 80px;
}

/* PORTFOLIO TABS */

.portfolio-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -35px;
    margin-bottom: 50px;
}

.portfolio-tabs {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 12px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
}

.portfolio-tabs a {
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    color: #111;
    background: #f3f3f3;
    transition: .25s;
}

.portfolio-tabs a:hover {
    background: var(--primary);
    color: #fff;
}

/* LIGHTBOX */

.lightbox.active {
    display: flex;
}

/* LIGHTBOX ANIMATION */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity .3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;

    background: #fff;
    padding: 30px;

    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

/* CLOSE BUTTON */

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    cursor: pointer;
    font-weight: 600;
}

/* ARROWS */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* MOBILE LIGHTBOX */

@media (max-width:768px) {

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 30px;
        transform: none;
        font-size: 32px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        padding: 10px 16px;
    }

    /* Mi Browser i neki drugi mobilni pregledači ponekad prijavljuju veću "width" vrednost
   (ili korisnik uključi Desktop mode). Podesimo vidljivost hamburger menija i za širi raspon.
   Ovo omogućava da dugme bude vidljivo i na uređajima sa CSS širinom do 1024px. */
    @media (max-width: 480px) {

        .hero-bottom-row img.hero-main-logo,
        .hero-main-logo,
        .hero-services-block .hero-main-logo {
            /* Slightly reduced from 73px to 70px for a subtle adjustment */
            height: 70px !important;
            width: auto !important;
            max-height: 70px !important;
        }

        /* keep offers logo larger on mobile unless explicitly requested */
        .hero-offers-row img,
        .hero-bottom img {
            height: 130px !important;
            max-height: 130px !important;
            width: auto !important;
        }
    }

    .lightbox-next {
        right: 10%;
    }

}

/* ================= OFFERS PREVIEW ================= */


.offers-preview h2 {

    margin-bottom: 20px;

}

.offers-preview-box {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;

    max-width: 900px;
    margin: 0 auto 40px auto;

}

/* OFFERS PREVIEW SECTION */

.offers-preview {

    padding: 100px 10%;
    text-align: center;

}

.offers-preview-text {

    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
    opacity: .9;

}

.offers-preview-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;

    max-width: 1100px;
    margin: 0 auto 50px auto;

}

.offers-preview .offer-card {
    text-align: left;
}

/* HAMBURGER MENU */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;

    background: #f3f3f3;
    padding: 8px 10px;
    border-radius: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    display: block;
}

/* MOBILE NAV */

@media (max-width:768px) {

    nav {
        position: absolute;
        top: 80px;
        right: 0;
        background: #fff;
        width: 200px;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
    }

    nav a {
        margin: 10px 0;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

}

.portfolio-tabs a.active {
    background: var(--primary);
    color: #fff;
}

/* Featured slider styles removed — cleaned to reduce unused CSS. */

/* Ensure offers logo matches main hero logo size (force if other rules override) */
.hero-bottom .hero-offers-row img,
.hero-offers-row img {
    height: 130px !important;
    width: auto !important;
    max-height: 160px;
}

.hero-bottom-row img.hero-main-logo,
.hero-main-logo {
    height: 90px !important;
}

/* Force vertical stacking when `.hero-offers-block` is present (override row-reverse) */
.hero-offers-row.hero-offers-block {
    flex-direction: column !important;
    gap: 10px;
}

/* Mobile overrides: ensure both hero logos match size on small screens */
@media (max-width: 480px) {

    .hero-bottom .hero-offers-row img,
    .hero-offers-row img,
    .hero-bottom-row img.hero-main-logo,
    .hero-main-logo {
        height: 96px !important;
        width: auto !important;
        max-height: 96px !important;
    }
}

/* When hero-content uses a smaller upward nudge on mobile, reduce arrow compensation */
@media (max-width: 640px) {
    .scroll-indicator {
        /* push a bit further down on small screens as well */
        transform: translateX(-50%) translateY(36px);
        bottom: 12px;
    }
}

/* Final mobile override placed at end to ensure it wins over earlier !important rules */
@media (max-width: 480px) {

    .hero h1,
    .offers-hero h1,
    .offers-title {
        font-size: 30px !important;
        line-height: 1.06 !important;
    }
}

/* Featured pricing box styles */
.featured-pricing-box {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.featured-pricing-box .pricing-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.featured-pricing-box .pricing-option:last-child {
    border-bottom: none;
}

.featured-pricing-box .duration {
    font-weight: 600;
}

.featured-pricing-box .price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-original {
    text-decoration: line-through;
    color: #777;
    font-size: 14px;
}

.price-free {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.12);
}

.price-normal {
    font-weight: 700;
    color: #111;
}

@media (max-width: 640px) {
    .featured-pricing-box .pricing-option {
        padding: 6px 0;
    }

    .price-original {
        font-size: 13px;
    }

    .price-free {
        font-size: 12px;
        padding: 3px 7px;
    }
}

/* Disable animations for hero logos so they appear immediately without motion */
.hero-offers-row img,
.hero-bottom-row img.hero-main-logo,
.hero-main-logo,
.hero-offers-block img,
.offers-hero-logo img,
.hero-bottom img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure offers logo in hero is clickable but has no hover/transition visual changes */
.hero-offers-block img {
    cursor: pointer;
    transition: none !important;
}