* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overscroll-behavior: none;
}

body {
    background-color: #e0d4bf;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overscroll-behavior-y: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background-color: #e0d4bf;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    height: 72px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-nav {
    margin-right: auto;
}

.nav-container > .nav-links {
    margin-left: auto;
    margin-right: 20px;
}

.nav-divider {
    margin-right: 20px;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.logo-nav a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-nav img {
    height: 52px;
    width: auto;
}

.company-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    color: #666;
}

.nav-links a:hover::before {
    transform: translateY(0);
}

.nav-links a span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-links a:hover span {
    transform: translateY(100%);
}

.nav-divider {
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.nav-contact {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nav-contact::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    color: #666;
}

.nav-contact:hover::before {
    transform: translateY(0);
}

.nav-contact span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-contact:hover span {
    transform: translateY(100%);
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    display: none;
    z-index: 1001;
    position: relative;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: #333;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0d4bf;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-links li {
    margin: 30px 0;
}

.mobile-menu-links a {
    font-family: 'Libre Baskerville', serif;
    font-size: 36px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.mobile-menu-links a:hover {
    color: #666;
}

/* Novosti Page */
.novosti-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 132px 40px 60px;
}

.page-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 42px;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin-bottom: 80px;
}

/* News Article */
.news-article {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}

/* News Card - Left Side */
.news-card {
    position: relative;
    transform: translateY(60px);
    flex: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.news-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #555;
}

.location-icon {
    width: 18px;
    height: 18px;
    color: #333;
}

.news-location span {
    font-size: 16px;
    font-weight: 500;
}

.news-text {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    font-family: Arial, sans-serif;
}

/* News Image - Right Side */
.news-image {
    flex: 1;
    max-width: 460px;
    transform: translateY(-50px) translateX(-100px);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* News Article 2 - Image Left, Card Right */
.news-article-2 .news-image-vertical {
    max-width: 460px;
    z-index: 2;
    transform: translateY(-50px) translateX(100px);
}

.news-article-2 .news-card {
    transform: translateY(60px);
}

/* News Article 3 - Same as First */
.news-article:nth-child(4) .news-card {
    transform: translateY(60px);
}

.news-article:nth-child(4) .news-image {
    transform: translateY(-50px) translateX(-100px);
}

/* Contact Section */
.contact-section {
    position: relative;
    max-width: 1000px;
    margin: 100px auto 60px;
    min-height: 600px;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

.contact-top {
    margin-top: 7.5vw;
    padding-left: 5vw;
}

.contact-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 40px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-description {
    font-size: 24px;
    line-height: 1.7;
    color: #333;
    font-family: 'Libre Baskerville', serif;
    max-width: 700px;
}

.contact-info-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 50px;
    padding-left: 5vw;
    padding-right: 5vw;
}

.contact-column {
    flex: 1;
}

.contact-item {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.contact-item strong {
    font-weight: 600;
}

.contact-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #000;
    transform: scale(1.05);
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    margin-top: 60px;
    height: 300px;
    overflow: hidden;
}

.footer-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.footer-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 50px 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
}

/* Left Column */
.footer-left {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    gap: 8px;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.footer-address {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Middle Column */
.footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.footer-logo {
    height: 120px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #333;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #666;
}

.social-link svg {
    width: 32px;
    height: 32px;
}

/* Right Column */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #666;
}

.footer-made-by {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.winkla-logo {
    width: 84px;
}

/* Bottom Copyright */
.footer-bottom {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.footer-copyright {
    font-size: 13px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Navigation */
    .navbar {
        height: 60px;
    }

    .nav-container {
        padding: 0 20px;
        gap: 15px;
        justify-content: space-between;
    }

    .logo-nav img {
        height: 40px;
    }

    .company-name {
        font-size: 24px;
    }

    /* Hide desktop navigation */
    .nav-links,
    .nav-divider,
    .nav-contact {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: block;
    }

    .hamburger svg {
        height: 2.5em;
    }

    .novosti-page {
        padding: 100px 40px 60px;
    }

    .news-article {
        flex-direction: column;
        gap: 40px;
    }

    .news-card,
    .news-image {
        max-width: 100%;
        transform: none !important;
    }

    /* Reorder: image first, card second */
    .news-card {
        order: 2;
        position: relative;
    }

    .news-image,
    .news-image-vertical {
        order: 1;
        position: relative;
        z-index: 10;
        margin-bottom: -52px;
    }

    .news-article-2 .news-image-vertical {
        max-width: 100%;
    }

    .news-article-2 .news-card {
        width: 100%;
    }

    /* Use mobile images */
    .news-article:nth-child(2) .news-image img {
        content: url('../slike/novosti/01-mobile.png');
    }

    .news-article-2 .news-image-vertical img {
        content: url('../slike/novosti/02-mobile.png');
    }

    .news-article:nth-child(4) .news-image img {
        content: url('../slike/novosti/03-mobile.png');
    }

    .page-title {
        font-size: 80px;
        margin-bottom: 60px;
    }

    .card-content {
        padding: 40px 35px;
    }

    .news-title {
        font-size: 24px;
    }

    .contact-info-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .contact-content {
        padding: 40px 45px;
    }

    .contact-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .footer-content {
        padding: 30px 50px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
    }

    /* Hide copyright in footer-middle on tablet */
    .footer-middle .footer-address {
        display: none;
    }
}

/* Tablet Responsive (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        height: 60px;
    }

    .nav-container {
        padding: 0 20px;
        gap: 15px;
        justify-content: space-between;
    }

    .logo-nav img {
        height: 40px;
    }

    .company-name {
        font-size: 24px;
    }

    /* Hide desktop navigation */
    .nav-links,
    .nav-divider,
    .nav-contact {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: block;
    }

    .hamburger svg {
        height: 2.5em;
    }

    /* Novosti Page */
    .novosti-page {
        padding: 100px 20px 40px;
    }

    .page-title {
        font-size: 60px;
        margin-bottom: 40px;
        text-align: center;
    }

    .news-article {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .news-card {
        transform: none !important;
        max-width: 100%;
        order: 2;
        position: relative;
    }

    .card-background {
        content: url('../slike/cards-mobile.jpg');
    }

    .news-image,
    .news-image-vertical {
        transform: none !important;
        max-width: 100%;
        order: 1;
        position: relative;
        z-index: 10;
        margin-bottom: -52px;
    }
    .news-article-2 .news-image-vertical {
        max-width: 100%;
    }
    /* Use mobile images */
    .news-article:nth-child(2) .news-image img {
        content: url('../slike/novosti/01-mobile.png');
    }

    .news-article-2 .news-image-vertical img {
        content: url('../slike/novosti/02-mobile.png');
    }

    .news-article:nth-child(4) .news-image img {
        content: url('../slike/novosti/03-mobile.png');
    }

    .card-content {
        padding: 40px 30px;
        justify-content: flex-end;
    }

    .news-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .news-text {
        font-size: 16px;
        line-height: 1.7;
    }

    .news-location span {
        font-size: 15px;
    }

    /* Contact Section */
    .contact-section {
        margin: 60px 20px 40px;
        min-height: auto;
    }

    .contact-content {
        padding: 40px 30px;
        min-height: auto;
    }

    .contact-background {
        object-fit: cover;
        height: 100%;
        min-height: 100%;
    }

    .contact-top {
        margin-top: 40px;
        padding-left: 0;
    }

    .contact-title {
        font-size: 80px;
        margin-bottom: 20px;
    }

    .contact-description {
        font-size: 18px;
    }

    .contact-info-wrapper {
        padding-left: 0;
        padding-right: 0;
        margin-top: 30px;
    }

    .contact-item {
        font-size: 16px;
    }

    /* Footer */
    .footer-background {
        content: url('../slike/footer-mobile.png');
        object-fit: cover;
    }

    .footer-content {
        padding: 40px 20px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-middle {
        order: 1;
    }

    .footer-left {
        order: 2;
    }

    .footer-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        order: 3;
    }

    .footer-right .footer-made-by {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-bottom {
        position: static;
        transform: none;
        order: 4;
        width: 100%;
    }

    .footer-logo {
        max-width: 120px;
        height: auto;
    }

    .footer-company-name {
        font-size: 20px;
    }

    .footer-address {
        font-size: 14px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .winkla-logo {
        max-width: 80px;
    }

    /* Hide copyright in footer-middle on mobile */
    .footer-middle .footer-address {
        display: none;
    }
}

/* Mobile Responsive (480px) */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        height: 55px;
    }

    .nav-container {
        padding: 0 15px;
        gap: 10px;
    }

    .logo-nav img {
        height: 35px;
    }

    .company-name {
        font-size: 18px;
    }

    .hamburger svg {
        height: 2.5em;
    }

    /* Mobile menu links smaller */
    .mobile-menu-links a {
        font-size: 28px;
    }

    .mobile-menu-links li {
        margin: 25px 0;
    }

    /* Novosti Page */
    .novosti-page {
        padding: 85px 15px 30px;
    }

    .page-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .news-article {
        gap: 20px;
        margin-bottom: 40px;
    }

    .news-card {
        order: 2;
        position: relative;
    }

    .news-image,
    .news-image-vertical {
        order: 1;
        position: relative;
        z-index: 10;
        margin-bottom: -52px;
    }

    .card-background {
        content: url('../slike/cards-mobile.jpg');
    }

    /* Use mobile images */
    .news-article:nth-child(2) .news-image img {
        content: url('../slike/novosti/01-mobile.png');
    }

    .news-article-2 .news-image-vertical img {
        content: url('../slike/novosti/02-mobile.png');
    }

    .news-article:nth-child(4) .news-image img {
        content: url('../slike/novosti/03-mobile.png');
    }

    .card-content {
        padding: 50px 20px 30px;
        justify-content: flex-end;
    }

    .news-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .news-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .news-location span {
        font-size: 14px;
    }

    .location-icon {
        width: 16px;
        height: 16px;
    }

    /* Contact Section */
    .contact-section {
        margin: 40px 0px 30px;
        min-height: 600px;
    }

    .contact-content {
        padding: 30px 20px;
        min-height: auto;
    }

    .contact-background {
        object-fit: cover;
        height: 100%;
        min-height: 100%;
    }

    .contact-top {
        margin-top: 30px;
    }

    .contact-title {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-info-wrapper {
        margin-top: 25px;
        gap: 16px;
    }

    .contact-item {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        height: auto;
        min-height: 300px;
    }

    .footer-background {
        content: url('../slike/footer-mobile.png');
        object-fit: cover;
    }

    .footer-content {
        padding: 30px 15px 15px;
    }

    .footer-top {
        gap: 5px;
    }

    .footer-middle {
        order: 1;
    }

    .footer-left {
        order: 2;
    }

    .footer-right {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0px;
        width: 100%;
        order: 3;
    }

    .footer-right .footer-made-by {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-bottom {
        position: static;
        transform: none;
        order: 4;
        width: 100%;
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer-company-name {
        font-size: 18px;
    }

    .footer-address {
        font-size: 13px;
    }

    .footer-social {
        gap: 15px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-made-by {
        font-size: 12px;
    }

    .winkla-logo {
        max-width: 60px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    /* Hide copyright in footer-middle on mobile */
    .footer-middle .footer-address {
        display: none;
    }
}
