/* Make sure these styles are in the correct CSS file */
/* (e.g., css/contact-us/landing.css) */

/* Wrapper for Background and Overlay */
.hero-background-wrapper {
    background-image: url('../../images/project-highlight-bg.webp'); /* Correct image path */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* Crucial for positioning children */
    color: #ffffff;
    /* --- CHANGE: Set a minimum height --- */
    min-height: 75vh; /* Make it take up 85% of the viewport height. Adjust as needed */
    /* --- CHANGE: Use Flexbox for vertical alignment (optional but good practice) --- */
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack children vertically (header, then hero space) */
    justify-content: space-between; /* Pushes header to top, allows hero to be positioned relative to bottom */
}

/* Gradient Overlay */
.hero-background-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #2D88C3 30.49%, rgba(0, 0, 0, 0.4) 70%);
    z-index: 1;
    pointer-events: none;
}


/* Styling for the Hero Content Section */
.contact-hero {
    /* --- CHANGE: Position absolutely within the wrapper --- */
    position: absolute;
    bottom: 60px; /* Distance from the very bottom edge. Adjust as needed. */
    left: 0;      /* Stretch across */
    right: 0;     /* Stretch across */
    z-index: 2; /* Ensure it's above the overlay */
    text-align: center;
     /* --- CHANGE: Remove padding, positioning is handled by 'bottom' --- */
    padding: 0 15px; /* Add horizontal padding for safety */
}

/* Container inside hero - not strictly needed if parent handles padding/centering */
.contact-hero-content {
     
}

.contact-hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.contact-hero-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}


/* --- Responsive Adjustments --- */

@media (max-width: 992px) {
    .hero-background-wrapper {
         min-height: 75vh; /* Slightly reduce height on tablets */
    }
}


@media (max-width: 768px) {
     /* Header stacking is likely handled in nav.css */
    .hero-background-wrapper {
         min-height: 65vh; /* Reduce height further on mobile */
    }
    .contact-hero {
        /* Adjust bottom spacing for mobile */
        bottom: 40px;
        padding: 0 20px; /* Adjust horizontal padding */
    }
    .contact-hero-content h2 {
        font-size: 2.2rem;
    }
     .contact-hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-background-wrapper {
         min-height: 50vh; /* Minimum height for small mobile */
    }
     .contact-hero {
        bottom: 30px;
    }
    .contact-hero-content h2 {
        font-size: 1.8rem;
    }
     .contact-hero-content p {
        font-size: 0.9rem;
    }
}

.contact-hero h2,
.contact-hero p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-hero.is-visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.contact-hero.is-visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
