/* ── Contact page layout ── */
.contact-section {
    align-items: stretch;
}

.contact-section>.section-title,
.contact-section>.section-text {
    align-self: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: clamp(14px, 2vw, 24px);
    width: 100%;
}

.contact-form,
.contact-card {
    border: var(--card-borders);
    border-radius: var(--inner-card-radius);
    background: var(--card-bg);
    padding: clamp(1rem, 1.8vw, 1.8rem);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 18px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 18px);
}

.contact-list span,
.footer-title {
    font-size: clamp(0.76rem, 0.35vw + 0.55rem, 0.9rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 1;
    color: white;
}

/* ── Contact sidebar card ── */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.4vw, 1.4rem);
    align-self: start;
}

.contact-card h2 {
    font-size: clamp(1.35rem, 1.4vw + 0.8rem, 2rem);
    line-height: 1.2;
}

.contact-card p {
    opacity: 1;
    line-height: 1.6;
    color: white;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 12px;
}

.contact-list a {
    color: white;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* ── Tablet fix ── */
@media (min-width: 481px) and (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 481px) and (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-card {
        align-self: stretch;
    }
}

/* ── Phone only ── */
@media (max-width: 480px) {
    .contact-layout,
    .form-row {
        grid-template-columns: 1fr;
    }
}