/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: transparent;
    color: #fff;
    text-align: center;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

header h1 {
    margin-bottom: 1rem;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 0.5rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background: url(/images/heroimage.jpg) no-repeat center center/cover;
    color: #fff;
    text-align: left;
    padding: 10rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero span {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: transparent;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #fff;
}

.mission,
.services,
.about,
.contact {
    padding: 3rem 0;
    background: #fff;
    margin-top: 2rem;
}

.mission h2,
.services h2,
.about h2,
.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* About Section Styles */
.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    text-align: left;
}

.about-image {
    width: 50%;
    padding-right: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.about-text {
    width: 50%;
    text-align: left;
}

.about-text h3 {
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.6;
}

/* Contact Section Styles */
.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 0 20px;
}

.form-container,
.info-container {
    width: 48%;
    box-sizing: border-box;
}

.info-container p {
    margin-bottom: 1rem;
}

/* Contact Form Styles */
.contact form {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.contact label {
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

/* Beautify Textarea */
.contact textarea {
    min-height: 100px;
    resize: vertical; /* Allows vertical resizing */
    border-radius: 5px;
    overflow: auto; /* Add scroll when content overflows */
}

.attach {
    font-size: 14px;
    color: gray;
}

.send-btn {
    padding: 10px;
    border: 1px solid black;
    border-radius: 30px;
    background: none;
    font-size: 16px;
    cursor: pointer;
}

.send-btn:hover {
    background: black;
    color: white;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {

    .hero h2 {
       font-size: 2rem; /* Reduce font size on smaller screens */
       word-break: break-word;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 100%;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .about-text {
        width: 100%;
        text-align: left;
    }

    .contact-container {
        flex-direction: column;
        padding: 0 10px;
    }

    .form-container,
    .info-container {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Map Section Styles */
.map {
    padding: 1rem 0;
    background: #f9f9f9;
    text-align: center;
    margin-top: 2rem;
}

.map iframe {
    width: 100%;  /* Take up full width of its container */
    height: 400px;  /* Set a desired height */
    border: 0;
    border-radius: 5px;
    max-width: none !important; /* Override any max-width set by Google Maps */
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .map iframe {
        height: 300px;  /* Adjust height for smaller screens */
    }
}
