/* General Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    background: #f7fafc;
    margin: 0;
    padding: 0;
}

.container {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header and Navigation --- */
header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0056b3;
    text-decoration: none;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

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

.nav-links li a {
    text-decoration: none;
    color: #0056b3;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.nav-links li a.active, .nav-links li a:hover {
    background: #cce6ff;
    color: #003d80;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: #0056b3;
    display: block;
    position: relative;
}

.hamburger:before, .hamburger:after {
    content: "";
    position: absolute;
    width: 28px;
    height: 3px;
    background: #0056b3;
    transition: 0.3s;
}

.hamburger:before {
    top: -9px;
}

.hamburger:after {
    bottom: -9px;
}

/* --- Hero Section --- */
.hero {
    color: white;
    text-align: center;
    padding: 130px 10px 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.18rem;
    max-width: 630px;
    margin: 0 auto 36px auto;
    opacity: 0.93;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004a99;
    border-color: #004a99;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.btn-secondary:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.10);
}

/* --- Why Section --- */
.why-section {
    padding: 80px 0 60px 0;
    background: #f8faff;
}

.section-title {
    font-size: 2.1rem;
    color: #0056b3;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.03em;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.why-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,86,179,0.07);
    padding: 36px 26px;
    text-align: center;
    max-width: 270px;
    flex: 1;
    min-width: 220px;
}

.why-icon {
    font-size: 2.4rem;
    color: #0056b3;
    margin-bottom: 18px;
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Increased gap for better separation */
}

.service-block {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 400px;
}

.service-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-block-reverse {
    flex-direction: row-reverse;
}

/* NEW: Style for the "Bojanje i obnova fasada" block */
.service-block-special {
    border: 3px solid #0056b3; /* Highlight border */
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.2); /* Stronger blue shadow */
    background: #e6f0fa; /* Light background for emphasis */
}

.service-block-special:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 86, 179, 0.25);
}

.service-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    transition: all 0.3s ease;
}

.service-block:hover .service-image::before {
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.17), rgba(41, 128, 185, 0.17));
}

.service-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-content p {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #34495e;
}

.service-features li::before {
    content: '✔';
    color: #27ae60;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.cta-text {
    font-weight: 600;
    color: #2980b9;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Mobile Image Addition - Hidden by default */
.service-img-mobile {
    display: none;
}

/* --- Before/After Section --- */
.before-after-section {
    padding: 70px 0 70px 0;
    background: #f8faff;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.comparison {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0,86,179,0.07);
    padding: 18px; /* Simplified padding */
    overflow: hidden;
}

.comparison-label {
    position: absolute;
    top: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: #0056b3;
    color: white;
    padding: 3px 13px;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.02em;
}

.before-label {
    left: 12px;
}

.after-label {
    right: 12px;
}

.comparison-image {
    width: 50%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.comparison-image.active {
    box-shadow: 0 4px 22px rgba(0, 86, 179, 0.09);
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 70px 0;
    background: white;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.testimonial {
    background: #f8faff;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,86,179,0.07);
    padding: 32px 24px;
    text-align: center;
    max-width: 350px;
    flex: 1;
    min-width: 220px;
}

.testimonial h4 {
    font-size: 1.1rem;
    color: #0056b3;
    margin: 12px 0 0 0;
    font-weight: 700;
}

/* --- Contact Form --- */
.contact-form-section {
    background: linear-gradient(135deg, #e6f0fa 0%, #cce6ff 100%);
    padding: 80px 0;
}

.form-intro {
    text-align: center;
    margin-bottom: 22px;
    color: #555;
}

form#contactForm {
    max-width: 520px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 38px 32px;
    box-shadow: 0 5px 22px rgba(0,86,179,0.07);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 7px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    font-size: 1rem;
    border: 1px solid #dbe2ef;
    border-radius: 6px;
    margin-top: 2px;
    margin-bottom: 8px;
    background: #f7fafc;
    transition: border 0.2s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
    background: #eaf2fb;
}

.form-submit-btn {
    margin-top: 15px;
}

/* --- Footer --- */
footer {
    background: #003d80;
    color: #f1f1f1;
    padding: 50px 0 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.footer-column {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 340px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aee0ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links a {
    display: inline-block;
    margin-right: 12px;
    color: #aee0ff;
    font-size: 1.35rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

.contact-info p {
    margin: 9px 0;
    font-size: 1rem;
}

.contact-info a {
    color: #aee0ff;
    text-decoration: none;
}

.contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-company-details {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.95em;
    width: 100%;
    display: block;
}
.footer-company-details h3 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-company-details p {
    margin: 7px 0;
}

.copyright {
    text-align: center;
    margin: 0;
    padding: 18px 0 12px 0;
    font-size: 0.97rem;
    color: #b0c4d7;
}

/* --- Responsive Styles --- */
@media (max-width: 1100px) {
    .why-grid,
    .testimonials,
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .services-container {
        gap: 35px;
    }

    .service-block,
    .service-block-reverse,
    .service-block-special { /* Included new class */
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 62px;
        right: 0;
        width: 220px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        z-index: 20;
        gap: 0;
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .why-grid,
    .testimonials {
        flex-direction: column;
    }

    .service-block,
    .service-block-reverse,
    .service-block-special { /* Apply mobile changes to all blocks */
        flex-direction: column;
        min-height: auto;
        border: none; /* Remove border on small screens for cleaner look */
    }

    .service-image {
        display: none;
    }

    .service-img-mobile {
        display: block;
        width: 100%;
        height: auto;
        margin: 20px 0 0 0;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        object-fit: cover;
    }

    .service-content {
        padding: 30px 18px;
    }

    .comparison-image {
        height: 180px;
    }

    .before-label, .after-label {
        font-size: 0.93rem;
        padding: 2px 8px;
        top: 7px;
    }

    .footer-content {
        flex-direction: column;
        gap: 14px;
    }

    .footer-column {
        max-width: 100%;
    }

    .gallery {
        gap: 18px;
    }
}


@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.23rem;
    }

    .service-content {
        padding: 22px 7px;
    }

    .gallery {
        gap: 8px;
    }

    .comparison-image {
        height: 100px;
    }

    .testimonial {
        padding: 22px 11px;
    }
}