/* Home Page Specific Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: #333;
    /* Fallback */
    /* Placeholder for hero image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('../images/bg-img.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
    /* Offset for header */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    /* The large title HAIMAZ CONSTRUCTIONS */
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.mission-section {
    position: relative;
    padding: 100px 20px;
    background-image: url('../images/city-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Semi-transparent overlay for city bg to match the faded look */
.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

.mission-box {
    background-color: var(--secondary-color);
    padding: 40px;
    max-width: 900px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 4px solid var(--text-dark);
    padding-bottom: 5px;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

.info-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.map-container {
    flex: 1;
    min-width: 300px;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
}

.address-container {
    flex: 1;
    min-width: 300px;
    background-color: #e0e0e0;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.address-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 30px;
}

.address-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 500;
}

.contact-form-section {
    background-color: #d1d1d1;
    /* Matches the grey background in the image below map */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

main:has(.contact-form-section:last-child)+.site-footer {
    margin-top: 0;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

/* Looking at image: "Contact us" is underlined with yellow */
.form-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #a3a3a3;
    /* dark grey field background as per image */
    border: none;
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #dcdcdc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #9c9c9c;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

@media screen and (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .info-section {
        flex-direction: column;
    }
}