* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
img {
    max-width: 100%;
    height: auto;
}
header {
    background-color: #142634;
    padding: 10px 0;
    text-align: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background-color: #34495e;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
nav a:hover {
    color: #ffa502;
}

.menu {
    display: flex;
    gap: 20px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    background-size: cover;
    background-position: center;
    padding: 0 20px;
    color: #fff;
    text-align: center;
    position: relative;
    background-image: url('img/hero-dark.jpg'); 
}
.hero-content {
    max-width: 80%;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}
.cta-btn {
    background: #ff6b6b;
    color: #fff;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    margin-top: 30px; /* Adjusted to move the button lower */
}
.cta-btn:hover {
    background: #ffa502;
}

/* Why Choose HPM ADU Contractor Section */
.why-choose-us {
padding: 60px 20px;
background: linear-gradient(to right, #6dd5ed, #2193b0);
color: #fff;
text-align: center;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.why-choose-us h2 {
font-size: 36px;
margin-bottom: 20px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
}
.why-choose-us p {
font-size: 18px;
margin-bottom: 20px;
line-height: 1.6;
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.features {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.feature {
background: #fff;
color: #2193b0;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 320px;
flex: 1;
transition: transform 0.3s;
}
.feature:hover {
transform: translateY(-10px);
}

.feature img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 3/2;
}
.feature h3 {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px; 
}
.feature p {
font-size: 16px;
color: #666;
line-height: 1.4;
margin-bottom: 20px;
}

/* CTA Contact  */
.cta-contact {
    margin-top: 20px;
    padding: 60px 20px;
    background-color: #142634;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
.cta-contact  h2 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    }
    
.cta-contact  p {
    font-size: 18px;
    color: #fff;;
    line-height: 1.6;
    margin-bottom: 10px;
    }

/* ADU Service Cards Section */
.adu-services {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}
.adu-services h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: bold;
    color: #333;
}
.services-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.service-card {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    text-align: left;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}
.service-card h3 {
    font-size: 22px;
    margin: 20px 0;
    color: #2193b0;
}
.service-card p {
    font-size: 16px;
    color: #666;
}

/* About Us / Why Choose Us Section */
.about-us {
    background: linear-gradient(to right, #6dd5ed, #2193b0);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.about-us h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.about-us p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.about-us .features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.about-us .feature {
    background: #fff;
    color: #2193b0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 280px;
    flex: 1;
    transition: transform 0.3s;
}
.about-us .feature:hover {
    transform: translateY(-10px);
}
.about-us .feature h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}
.about-us .feature p {
    font-size: 16px;
    color: #666;
}

.google-review {
    margin-top: 20px;
    padding: 60px 20px;
    background-color: #142634;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Trust Section */
.trust {
    margin-top: 20px;
    margin-bottom: 66px;
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.trust p {
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 20px;
    line-height: 140% !important;
    color: #363636;
    font-size: 35px;
}

.trust-block {
    padding: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    column-gap: 40px;
}

.trust-block img {
    transition: transform 0.3s ease-in-out; 
    min-width: 170px;
    height: 90px;
}

.trust-block img:hover {
    transform: scale(1.1); 
}


.contact-section {
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
}

.contact-section h2 {
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

.contact-us {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    }

/* Контейнер для карти */
.contact-map {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Адаптивність карти */
.contact-map iframe {
    width: 100%;
    max-width: 1000px;
    height: 100%;
    min-height: 550px;
    border: 0;
}

/* Додатковий контейнер для співвідношення сторін */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-form {
/* width: 50%; */
flex: 1;
/* background: #fff; */
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
/* margin-right: 200px; */
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
}

.contact-form textarea {
height: 120px;
resize: none;
}

.contact-form button {
width: 100%;
padding: 12px;
font-size: 18px;
font-weight: bold;
color: #fff;
background: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s;
}

.contact-form button:hover {
background: #0056b3;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 16px;
    line-height: 1.6;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 400;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .menu {
        display: none; 
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        background-color: #34495e;
        padding: 10px;
    }
    .services-cards{
        grid-template-columns: 1fr; 
    }
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: #fff;
    }
    
    .about-us .features {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
    }
    .why-choose-us .features {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
    }

    .contact-us {
        flex-direction: column;
    }
    .contact-form {
        width: 100%;
    }

    .contact-map, .contact-form {
        width: 100%;
    }
    .map-container {
        padding-bottom: 75%; /* Більше місця для карти на вузьких екранах */
    }
    .contact-map iframe {
        width: 100%;
        max-width: 1000px;
        height: 100%;
        min-height: 400px;
        border: 0;
    }
    .trust-block {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }   
    .trust-block img {
        padding-top: 20px;
    }
}