/* Spinner for loading state in form */
.sending-spinner {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 2.5px solid #00bc32;
    border-top: 2.5px solid #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 0.7em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Make images and iframes responsive */
img, iframe {
    max-width: 100%;
    height: auto;
}

.center {
    display:contents  ;
    justify-content: center;
    align-items: center;
}

h2 {
    color: #036b2b;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}


.moje {
display: flex;
flex-direction: row;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #d2d2d2;
}

header {
background-image: url(bm0.jpg);
    color: rgb(36, 36, 36);
    
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

nav {
    background-color: #036b2b;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile hamburger button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* When menu is collapsed on small screens, hide the list */
nav ul.open {
    display: block;
}

nav ul.mobile-hidden {
    display: none;
}

nav li {
    margin: 0 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #000000;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    overflow: hidden;
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: #036b2b;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #036b2b;
    padding-bottom: 1rem;
    overflow: hidden;
}

h3 {
    color: #036b2b;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.hero {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
}

.services {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    gap: 2rem;
    margin-top: 2rem;
}



.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #00ad2b61 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #036b2b;
    border-right: 4px solid #036b2b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: relative;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.contact {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    font-size: 1.1rem;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-info strong {
    color: #036b2b;
}

.contact-form-wrapper {
    background: linear-gradient(135deg, #02e446 0%, #e0f2fe 100%);
    padding: 2.2rem 1.2rem 1.5rem 1.2rem;
    border-radius: 18px;
    border-left: 4px solid #036b2b;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    max-width: 420px;
    margin: 0 auto;
}

/* Basic styling for the inline contact form */
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #4cdf67;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.08rem;
    margin-bottom: 1.1rem;
    box-sizing: border-box;
    background: #f8fefd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

form button[type="submit"] {
    background: linear-gradient(90deg, #00bc32 0%, #036b2b 100%);
    color: #fff;
    padding: 0.85rem 2.2rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px 0 rgba(0,188,50,0.10);
    letter-spacing: 0.03em;
    margin-top: 0.2rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

form input:focus, form textarea:focus, .nav-toggle:focus {
    outline: none;
    border-color: #00bc32;
    box-shadow: 0 0 0 2px #4cdf67;
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: #036b2b;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.01em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #036b2b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #036b2b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #000000 0%, #00bc32 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 250, 108, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-weight: 600;
}

#formMessage.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#formMessage.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

footer {
    background-color: #006825;
    color: white;
    padding: 1.25rem 1rem;
    margin-top: 10px;
}

.mark {
    text-align: center;
    padding: 0.5rem 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        display: none; /* hidden by default on small screens, toggled by button */
    }

    .nav-toggle { display: inline-block; }

    nav ul.open { display: block; }

    nav li { margin: 0.4rem 0; text-align: center; }

    nav li {
        margin: 0.5rem 0;
    }

    main {
        padding: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Smaller devices tweaks */
@media (max-width: 480px) {
    header h1 { font-size: 1.25rem; }
    .header-content { padding: 0 0.5rem; }
    main { padding: 0.75rem; }
    .contact-container { gap: 1rem; }
    .contact-info img { max-width: 160px; }
    .responsive-map { height: 200px; }
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #085400;
}


html {
    scroll-behavior: smooth;
}

.floating-request {
    position: fixed;
    right: 2.25rem;
    left: auto;
    bottom: 2.25rem;
    background: linear-gradient(135deg, #000000 0%, #01ac01 100%);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 1200;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-request:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}

@media (max-width: 480px) {
    .floating-request {
        right: 0.75rem;
        left: auto;
        bottom: 0.75rem;
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
        max-width: 45%;
    }
}
/* cleaned-up .mark defined earlier; removed broken duplicate */