/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #223564;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    background-image: url('./imgg/justalogo.png');
    background-size: contain; /* Da cela slika stane u prostor */
    background-repeat: no-repeat;
    background-position: right center;
    
    display: flex;
    align-items: center;
    gap: 0.5rem;

    /* MORAŠ dodati dimenzije jer div bez sadržaja ima visinu 0 */
    width: 150px; 
    height: 50px;
    
    /* Ako imaš tekst unutar diva, pomeri ga udesno da ne ide preko slike */
    padding-left: 60px; 
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #4b5563;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid #e5e7eb;
    padding-left: 1rem;
}

.lang-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
}

.mobile-menu-btn {
    display: flex;
    background: none;
    width: 2.5rem;
    height: 2.5rem;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #1f2937;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #1f2937;
    position: absolute;
}

.hamburger::before {
    top: -0.5rem;
}

.hamburger::after {
    bottom: -0.5rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    display: inline-block;
    font-size: 0.9375rem;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary-lg {
    background: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary-lg:hover {
    background: #1d4ed8;
}

.btn-secondary-lg {
    border: 2px solid #d1d5db;
    color: #4b5563;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: inline-block;
    font-size: 1rem;
}

.btn-secondary-lg:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-white-lg {
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.btn-white-lg:hover {
    background: #f3f4f6;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
}

.full-width {
    width: 100%;
}

/* Badge */
.badge {
    width: fit-content;
    display: inline-block;
    background-color: rgb(43, 119, 248, 0.3);
    color: #223564;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;

}

/* Hero Section */
.hero {
    padding-top: 4rem;
    background-image:  
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.4) 50%),
        url(./imgg/global.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 600;
    color: #2563eb;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-image img,
.rounded-image {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Page Section */
.page-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.page-section.bg-white {
    background: white;
}

.page-section.bg-gray {
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1,
.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-1:hover { 
    background-image: 
        linear-gradient(to bottom, rgba(34,53,100, 0.1) 0%, rgba(255,255,250, 0.9) 50%), 
        url(./imgg/medjunarodni-transport.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
}

.card-2:hover { 
    background-image: 
        linear-gradient(to bottom, rgba(34,53,100, 0.1) 20%, rgba(255,255,250, 0.9) 50%), 
        url(./imgg/unutrasnji-transport.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
    transition: background 0.4;
}

.card-3:hover { 
    background-image: 
        linear-gradient(to bottom, rgba(34,53,100, 0.1) 20%, rgba(255,255,250, 0.9) 50%), 
        url(./imgg/zbirni-transport.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
    transition: background 0.4;
}

.card-4:hover { 
    background-image: 
        linear-gradient(to bottom, rgba(34,53,100, 0.1) 20%, rgba(255,255,250, 0.9) 50%), 
        url(./imgg/dispecerstvo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
    transition: background 0.4;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s;
}

.service-card:hover .service-icon {
    background: #2563eb;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #2563eb;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
}

.service-card:hover .service-icon svg {
    stroke: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2563eb;
}

.service-card p {
    color: #6b7280;
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About Page */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-large {
    font-size: 1.125rem;
    color: #4b5563;
}

.features-grid {
    display: grid;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: #16a34a;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Why Choose Section */
.why-choose-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #2563eb;
    stroke-width: 2;
    fill: none;
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.benefit-item p {
    color: #6b7280;
    font-size: 0.9375rem;
}

@media (min-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Steps Grid */
.steps-grid {
    display: grid;
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dbeafe;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Requirements & Benefits */
.req-benefits-grid {
    display: grid;
    gap: 3rem;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: #2563eb;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.benefits-list-alt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item-alt {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-icon-alt {
    width: 2rem;
    height: 2rem;
    background: #dcfce7;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon-alt svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: #16a34a;
    stroke-width: 2;
    fill: none;
}

.benefit-item-alt span {
    font-size: 1.125rem;
    color: #4b5563;
}

.carriers-image {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .req-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA Section */
.cta-section {
    background: #2563eb;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-help {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #bfdbfe;
}

.cta-help .highlight {
    color: white;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 3rem;
    }
}

/* Tracking Section */
.tracking-section {
        background-image:  
        linear-gradient(to bottom, rgb(34, 54, 84, 0.9) 0%, rgb(37, 99, 235, 0.95) 50%),
        url(./imgg/pracenjeposiljke.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tracking-content {
    text-align: center;
}

.tracking-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}

.tracking-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.tracking-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tracking-content p {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
}

.tracking-form {
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.tracking-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracking-input {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
}

.tracking-input:focus {
    outline: 2px solid #bfdbfe;
}

.btn-track {
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-track:hover {
    background: #f3f4f6;
}

.btn-track svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.tracking-help {
    font-size: 0.875rem;
    color: #bfdbfe;
}

.highlight-blue {
    color: white;
}

@media (min-width: 640px) {
    .tracking-input-group {
        flex-direction: row;
    }
    
    .tracking-input {
        flex: 1;
    }
    
    .btn-track {
        width: auto;
    }
}

@media (min-width: 768px) {
    .tracking-content h1 {
        font-size: 3rem;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #2563eb;
    stroke-width: 2;
    fill: none;
}

.contact-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #1f2937;
}

.business-hours {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.hours-list {
    margin-top: 0.5rem;
}

.hours-item {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #2563eb;
    border-color: transparent;
}

.form-group textarea {
    resize: none;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.footer {
    background: #223564;
    color: #9ca3af;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    background-image: url('./imgg/justalogo.png');

    background-size: contain; /* Da cela slika stane u prostor */
    background-repeat: no-repeat;
    background-position: right center;
    
    display: flex;
    align-items: center;
    gap: 0.5rem;

    /* MORAŠ dodati dimenzije jer div bez sadržaja ima visinu 0 */
    width: 150px; 
    height: 50px;
    
    /* Ako imaš tekst unutar diva, pomeri ga udesno da ne ide preko slike */
    padding-left: 60px; 
}

.footer-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.social-link:hover {
    color: #2b77f8;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-newsletter-desc {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #1f2937;
    border: 1px solid #374151;
    color: white;
    font-size: 0.875rem;
}

.newsletter-form input::placeholder {
    color: #6b7280;
}

.newsletter-form input:focus {
    outline: 2px solid #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: #3b82f6;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
