/* Root variables - iste kao u styles.css */
:root {
    --primary-text: #333333;
    --accent: #E07A5F;
    --background: #FFFFFF;
    --dark-background: #333333;
    --font-family: 'Inter', sans-serif;
}

/* Body styles - iste */
body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--background);
    color: var(--primary-text);
    line-height: 1.6;
    font-weight: 400;
    background: linear-gradient(
        to bottom,
        rgba(231, 220, 201, 0.8) 20%,
        white 100%
    );
}

/* Container - isti */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles - kopirano iz styles.css, nepromijenjeno */
.sticky-header {
    position: sticky;
    top: 0;
    background: var(--background);
    box-shadow: 0 1px 0 #000;
    padding: 1rem 0;
    z-index: 1000;
}

.sticky-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    justify-content: center;
}

.header-right {
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-weight: bold;
}

.accent-text {
    color: var(--accent);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-nav a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 400;
    font-weight: bold;
}

.cta-button.small {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #000;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.mobile-nav a {
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
}

@media (max-width: 640px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .cta-button.small {
        display: none;
    }
    .header-center {
        display: none;
    }
    .sticky-header .container {
        justify-content: space-between;
    }
}

/* Hero section - prilagođeno */
.hero.section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    background: url('assets/background-hero.jpg') no-repeat center center/cover;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    max-width: 80%;
    color: #fff;
}

.hero .subheadline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 2rem;
    max-width: 80%;
}

/* General section styles */
.section {
    padding: 4rem 0;
}

.gray-background {
    background-color: #f9f7f3;
}

/* Badge, h2, subheadline - centrirano, badge sada centriran */
.badge {
    background: rgba(224, 122, 95, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;  /* Promijenjeno u block za centriranje */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: fit-content;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.subheadline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-year {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Mission-vision grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mission, .vision {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #666;  /* Sivo za crno-bijelo/sivo izgled */
}

.value-item h3 {
    margin-bottom: 0.5rem;
}

/* Equipment - dodano za 3 slike u redu, smanjene */
.equipment-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.equipment-images img {
    width: 30%;  /* Smanjeno na 30% za 3 u redu */
    max-width: 300px;  /* Maksimalna širina za male ekrane */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .equipment-images img {
        width: 100%;  /* Na mobile stack-ano */
    }
}

/* Why me list - centrirano, bolji layout */
.why-list {
    list-style: none;
    padding: 0;
    max-width: 600px;  /* Suženo za centriranje */
    margin: 0 auto;
    text-align: left;  /* Tekst lijevo, ali lista centrirana */
}

.why-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.why-list li:before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* CTA */
.cta-section {
    padding: 4rem 0;
}

.cta-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-card .cta-button {
    width: auto;
    margin: 1rem auto;
}

.contact-info {
    font-weight: bold;
    color: var(--accent);
}

/* CTA button */
.cta-button {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(224, 122, 95, 0.3);
}

/* Animacije - dodana fade-right */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Footer - kopirano iz styles.css */
footer {
    background: var(--dark-background);
    color: #fff;
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-logo p {
    color: #bbb;
    line-height: 1.5;
    font-size: 0.85rem;
    max-width: 250px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-contact p {
    color: #ddd;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.footer-contact .social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-contact .social a {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-contact .social a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}

.copyright {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-logo {
        grid-column: span 3;
        text-align: center;
    }

    .footer-logo p {
        max-width: none;
        margin: 0 auto;
    }

    .footer-column {
        text-align: center;
    }

    .footer-contact .social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
        .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem; /* Smanji razmak između sekcija */
    }

    .footer-column {
        width: 100%;
        text-align: center; 
        margin-bottom: 1rem; /
    }

    .footer-column h4 {
        font-size: 1.2rem; /* Malo veći naslov za čitljivost */
        margin-bottom: 0.5rem;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-column ul li {
        margin-bottom: 0.3rem; 
        font-size: 0.9rem; 
    }

    .footer-logo p {
        font-size: 0.9rem; /* Smanji opis logo-a */
    }

    .footer-contact p {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }

    .social {
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .social a {
        display: inline-block;
    }

    .social svg {
        width: 24px; /* Standardna veličina ikona */
        height: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem; /* Smanji copyright i legal font */
    }

    .legal-links {
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .legal-links li {
        margin: 0;
    }

    .legal-links a {
        text-decoration: none;
        color: #aaa; /* Ako treba promijeniti boju */
    }
}