﻿*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    box-sizing: inherit;
    touch-action: manipulation;
  /*  -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;*/
}

/* Body and Typography */
body {

    font-family: 'OpenSans', sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5 {
    font-family: 'OpenSans', sans-serif;
    color: #000;
    font-weight: 600;
}

h1 {
    font-size: 3.75rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.875rem;
    line-height: 1.5;
}

h4, h5 {
    font-size: 1.125rem;
    line-height: 1.3;
}

p {
    color: #555;
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin: 1rem 0;
    font-family: 'OpenSans', sans-serif;
    font-weight: 100;
}

b, strong {
    color: #000;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header and Navigation */
header {
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-image {
    width: 30%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar-collapse {
    flex-grow: 0;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
   width: 25px;
   height: 3px;
   background: #fff;
   margin: 5px 0;
}

/*.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff; 
}
*/

/* Sections */
section {
    padding: 2rem 0;
    text-align: center;
}

.blue {
    background-color: #507EED;
    color: #fff;
}

.blue h2, .blue p {
    color: #fff;
}




/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    color: #000;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.social-links svg {
    width: 36px;
    height: 36px;
}
   

/* Menu Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        z-index: 1;
    }

        .nav-links.nav-active {
            display: flex;
        }

    .burger {
        display: block;
    }

        .burger.toggle .line1 {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

        .burger.toggle .line2 {
            opacity: 0;
        }

        .burger.toggle .line3 {
            transform: rotate(45deg) translate(-5px, -6px);
        }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 2rem 0;
/*    max-height: 650px; 
    overflow: hidden;*/
}

/* Mobile styles */
@media (max-width: 620px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
   
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


.gallery-grid-item {
    display: block;
    position: relative;
    overflow: hidden;
}


    /* Gallery Images */
    .gallery-grid-item img {
        width: 100%; 
        height: 150px;
        object-fit: cover;
        display: block;
    }

/* Make sure the gallery looks good on smaller screens */
@media (min-width: 768px) {
    .gallery-grid-item img {
        height: 220px; 
    }
}

@media (min-width: 1024px) {
    .gallery-grid-item img {
        height: 300px;
    }
}


.gallery-grid-item::after {
    content: '';
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2) url(../images/icon-zoom.svg) no-repeat center center;
    border: 1px solid #fff;
    border-radius: 5px;
}

/* Gallery Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.contact-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-item img {
    width: 32px;
    height: auto;
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

/* Contact Form */
.contact-form-container {
    margin-top: 30px;
    max-width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
}

.form-group button {
    padding: 0.5rem 5rem;
    background-color: #507EED;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 15px;
}
}

.form-group button:hover {
    background-color: #0056b3;
}

.form-group select {
    padding-right: 40px;
    background: white no-repeat calc(100% - 14px) 50% url(/images/icon-down.svg);
    background-size: 16px 16px;
    font-size: 16px;
    color: #757575;
    border: 1px solid #ccc;
    appearance: none;
}

/* File Input */
.file-label input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: left;
    width: 100%;
    position: relative;
    font-size: 1rem;
}

.file-text {
    display: inline-block;
    color: #757575;
}

.file-label::after {
    content: 'Upload';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #507EED;
    padding: 11px 20px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        width: 50%;
    }
    .contact-item img {
        width: 32px; 
    }
    .form-row {
        flex-direction: column;
    }

    .form-group button {
        width: 100%;
    }

    .file-label::after {
        padding: 11px 10px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .contact-item img {
        width: 32px;
    }
}
