﻿/* =============== contact.css =============== */

/* Assumes refwire.css is linked first */

.contact-page {
    padding: 2rem 0 4rem;
}

    /* Page Header (reusing from other pages but can be specific if needed) */
    .contact-page .page-header {
        padding: 2rem 0 3rem; /* Vertical padding */
        text-align: center;
        margin-bottom: 3rem;
        border-bottom: 1px solid var(--border-color);
    }

        .contact-page .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .contact-page .page-header p.subtitle {
            font-size: 1.125rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

/* Contact Methods */
.contact-methods {
    /* No specific styles needed for the section wrapper itself,
       layout is handled by the grid inside */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Spacing between cards */
}

.contact-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center; /* Center content within the card */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    transition: var(--transition);
}

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--card-shadow);
        border-color: var(--accent-color);
    }

.contact-icon {
    font-size: 2.5rem; /* Large icon */
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    width: 70px; /* Fixed size for the icon background */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary); /* Icon background */
    border-radius: 50%; /* Circular background */
}

.contact-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the button to the bottom if cards have varying text length */
}

.contact-card .btn {
    min-width: 180px; /* Give buttons a decent width */
    margin-top: auto; /* Aligns button to the bottom if flex-grow is on p */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-page .page-header h1 {
        font-size: 2rem;
    }

    .contact-page .page-header p.subtitle {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}
