/* -- Contact Styles -- */

.hero {
    box-shadow: rgba(0, 0, 0, 0.5) 0px 3px 8px;
    height: 20em;
    /* Use Flexbox to align items */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns content to the top */

    /* Adjusted padding: removed 320px sides to let title wrap naturally */
    padding: 80px 10%;

    background-color: #000000;
    color: white;
    /* Initial state: Only Gradient */
    background-image: linear-gradient(rgba(0, 0, 0, 0.299) 0%, rgba(255, 255, 255, 0) 40%);
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    /* Optional: smooth fade-in if browser supports it for gradients/images */
}

/* Loaded state: Gradient + Image */
.hero.bg-loaded {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.443) 0%, rgba(255, 255, 255, 0) 50%), url('Resources/Banners/services.jpeg');
}

.hero-title {

    /* Removed position: absolute so it stays in the flow */
    position: relative;
    z-index: 10;

    /* Existing Styles */
    color: #ffffff;
    text-shadow: rgba(0, 0, 0, 0.961) 0px 2px 10px;

    /* Typography */
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    /* Responsive font size */
    margin: 0 0 20px 0;
    /* 20px bottom margin pushes the container down */
    line-height: 1.3;
    /* Tightens line height for multi-line titles */
    width: 100%;
    /* Allows it to take up full width and wrap */
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 5%;
    }

    .hero-title {
        font-size: 2.5rem;
    }


}

/* -- Content Sections -- */
.contact-content {
    background-color: #f9f9f9;
    padding: 60px 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
    font-size: 2rem;
    color: #006aa0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* -- Contact Details -- */
.contact-detail-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon-large {
    width: 48px;
    height: 48px;
    padding: 10px;
    background-color: #006aa0;
    border-radius: 50%;
}

.contact-detail-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #555;
    font-family: "Noto Sans", sans-serif;
    font-weight: 600;
}

.contact-detail-text a,
.contact-detail-text p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact-detail-text a:hover {
    color: #006aa0;
    text-decoration: underline;
}

/* -- Address Styling -- */
address {
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

address p {
    margin: 5px 0;
}

.office-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* -- Yard Info / Map -- */
.yard-info {
    padding: 60px 5%;
    background-color: white;
    text-align: center;
}

.yard-info iframe {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-card h2 {
        font-size: 1.8rem;
    }

    .yard-info iframe {
        height: 350px;
    }
}