.get-in-touch {
    grid-column: 4 / 5; /* Move to fourth column */
    grid-row: 1 / 3;
    background: linear-gradient(145deg, #E8D9CD, #f0e6dd);
    border: 2px solid #e0d0be;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-header {
    font-family: "Kavoon", serif;
    font-weight: 100;
    font-size: 30px;
    margin-bottom: 12px;
    color: #3b342d;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.social-item:hover {
    background-color: rgba(244, 242, 239, 0.7);
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #F4F2EF;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon-wrapper:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 28px;
    height: 28px;
    color: #333;
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-weight: 700;
    font-size: 19px;
    color: #5a4a3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-username {
    font-weight: 500; /* Bolder font weight */
    font-size: 18px; /* Larger font size */
    color: #000000; /* Darker color for more focus */
    margin-top: 4px; /* Slight spacing from the name */
}

.social-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Flex children default to min-width:auto, which stops the text column
   shrinking below the email's length — that is what pushed it past the card
   edge on laptops. Let it shrink; if it still can't fit, the <wbr> in the
   markup lets the email wrap cleanly before the "@". */
.social-link,
.social-item,
.social-info {
    min-width: 0;
}

.social-icon-wrapper {
    flex-shrink: 0;
}

.social-username {
    overflow-wrap: break-word;
}

/* 4-column laptop range: column 4 is only ~300px wide, so tighten the rows. */
@media (min-width: 1351px) and (max-width: 1600px) {
    .get-in-touch {
        padding: 20px 16px;
    }

    .social-item {
        gap: 12px;
        padding: 10px 8px;
    }

    .social-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .social-name {
        font-size: 17px;
    }

    .social-username {
        font-size: 16.5px;
    }

    .email-row .email-open {
        top: 5px;
        right: 4px;
        width: 26px;
        height: 26px;
    }

    .email-row .email-open svg {
        width: 14px;
        height: 14px;
    }
}

.contact-cta {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    color: #6a5a4a;
    font-size: 16px;
}

/* ========================================
   Email row: the row copies; ↗ opens the mail app
   ======================================== */
.email-row {
    position: relative;
}

/* Reset the <button> so it looks exactly like the link rows above it. */
.email-copy {
    width: 100%;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.email-copy .social-name {
    display: block;
}

.email-hint {
    font-size: 0.72em;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #8a7a6a;
    opacity: 0;
    transition: opacity 180ms ease;
}

.email-copy:hover .email-hint,
.email-copy:focus-visible .email-hint {
    opacity: 1;
}

.email-copy.is-copied .social-name {
    color: #3f7a4a;
}

.email-copy:focus-visible,
.social-link:focus-visible {
    outline: 3px solid #3b342d;
    outline-offset: 2px;
    border-radius: 10px;
}

.email-open {
    position: absolute;
    top: 8px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #5a4a3a;
    background-color: rgba(244, 242, 239, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 200ms ease, background-color 200ms ease;
}

.email-open svg {
    width: 16px;
    height: 16px;
}

.email-open:hover {
    background-color: #fff;
    transform: translateY(-1px);
}

.email-open:focus-visible {
    outline: 3px solid #3b342d;
    outline-offset: 2px;
}

/* Touch screens have no hover, so the hint is always shown there. */
@media (hover: none) {
    .email-hint {
        opacity: 1;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .email-hint,
    .email-row .email-open {
        transition: none;
    }
}