/* Responsive breakpoints for mobile and tablet, matching index.html */
@media (max-width: 768px) {
    .contact-section {
        min-height: 40vw;
        height: 40vw;
        max-height: 60vw;
        padding-top: 3.5rem;
        background-position: center 20% !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-attachment: initial !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
    }
    .contact-section h1 {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin: 0 auto;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        z-index: 2;
        padding: 1.8rem 5vw 1.2rem 5vw;
        box-sizing: border-box;
        background: rgba(0,0,0,0.15);
        border-radius: 8px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contact-headshots {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }
    .contact-person {
        width: 90vw !important;
        max-width: 320px;
    }
    .contact-img {
        width: 80vw !important;
        max-width: 220px;
        aspect-ratio: 1 / 1; /* make headshots square on mobile */
        height: auto !important;
        object-fit: cover !important;
        /* nudge focal point down slightly so tops of heads are visible */
        object-position: center 35% !important;
    }
    .contact-intro {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        max-width: 98vw;
    }
}

@media (max-width: 480px) {
    .contact-section h1 {
        font-size: 1.5rem;
    }
}
/* Styles for Contact Us page */

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center 25%;
    background-attachment: fixed; 
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 1rem;
}

.contact-section h1 {
    font-size: 3.2rem;
    margin-bottom: 0rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.contact-intro {
    margin-top: 2rem;
    padding: 3rem 4rem; /* larger padding to occupy more space */
    background: none; /* remove white box */
    border-radius: 0;
    max-width: 1200px; /* wider content area */
    box-shadow: none;
    text-align: center; /* center the intro text like screenshot */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(20px) scale(0.99);
    animation: pull-in 0.7s cubic-bezier(.6,-0.28,.74,.05) 0.05s forwards;
    transition: none;
}

@keyframes pull-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-headshots {
    display: flex;
    gap: 4.5rem; /* increased gap for breathing room */
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 360px; /* larger card width */
}

.contact-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center 45%; /* lower focal point to avoid cropping */
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    margin-bottom: 1rem;
}

.contact-name {
    font-weight: bold;
    font-size: 1.9rem; /* larger name text */
    margin-top: 1rem;
}

.contact-email {
    font-size: 1.35rem; /* larger email */
    color: #6a1fae;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.contact-role {
    font-size: 1.25rem; /* larger role */
    color: #444;
    margin-bottom: 0.5rem;
}

.contact-purple-box {
    background: #6a1fae;
    color: #fff;
    border-radius: 14px;
    padding: 1.2rem 2.2rem;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    max-width: 700px;
    margin-bottom: 2.2rem;
}
