/* ==========================
   CONTACT PAGE
========================== */

.contact-card {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.08);
    width: 85%;
    margin: 25px auto;
    padding: 45px;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}


    /* ==========================
   TITLE
========================== */

    .contact-card h1 {
        color: white;
        font-size: 38px;
        font-weight: 900;
        margin-bottom: 20px;
        text-shadow: 0 0 8px rgba(168,216,255,.85), 0 0 18px rgba(168,216,255,.55), 0 0 30px rgba(120,190,255,.35);
    }


/* ==========================
   INTRO
========================== */

.contact-intro {
    color: #CFEFFF;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.7;
    margin: 0 auto 35px;
    max-width: 680px;
}


/* ==========================
   CONTACT OPTIONS
========================== */

.contact-options {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 22px;
    margin: 35px auto;
}


/* ==========================
   CONTACT BUTTONS
========================== */

.contact-option {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95px;
    padding: 22px;
    border-radius: 30px;
    text-decoration: none;
    color: #1C3F82;
    font-size: 21px;
    font-weight: 900;
    background: linear-gradient( to bottom, #ffffff 0%, #fffaf0 38%, #f3dfbd 100% );
    box-shadow: inset 0 3px 5px rgba(255,255,255,.95), inset 0 -4px 8px rgba(151,105,35,.18), 0 8px 18px rgba(0,0,0,.18);
    transition: .3s;
}


    .contact-option::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 12%;
        width: 76%;
        height: 34%;
        border-radius: 999px;
        background: linear-gradient( to bottom, rgba(255,255,255,.9), rgba(255,255,255,.16) );
        pointer-events: none;
    }


    .contact-option:hover {
        transform: translateY(-4px) scale(1.02);
        color: white;
        background: linear-gradient( to bottom, #ffd77c 0%, #ffbe45 45%, #f8a51b 100% );
        box-shadow: inset 0 3px 5px rgba(255,255,255,.95), inset 0 -4px 8px rgba(180,100,0,.20), 0 6px 16px rgba(248,165,27,.45), 0 0 25px rgba(248,165,27,.25);
    }


/* ==========================
   HELPFUL INFO
========================== */

.helpful-info {
    background: rgba(6, 14, 48, 0.92);
    border: 1px solid rgba(120,180,255,.18);
    border-radius: 35px;
    padding: 30px;
    margin: 40px auto 30px;
    box-shadow: 0 0 20px rgba(90,150,255,.12), 0 10px 30px rgba(0,0,0,.28), inset 0 0 18px rgba(120,180,255,.06);
}


    .helpful-info h2 {
        color: white;
        font-size: 30px;
        font-weight: 900;
        margin-bottom: 18px;
        text-shadow: 0 0 8px rgba(168,216,255,.85), 0 0 18px rgba(168,216,255,.55), 0 0 30px rgba(120,190,255,.35);
    }


    .helpful-info p {
        color: #d6e7ff;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.8;
        max-width: 720px;
        margin: auto;
    }


/* ==========================
   CLOSING
========================== */

.contact-closing {
    color: white;
    font-size: 30px;
    font-weight: 900;
    margin-top: 35px;
    text-shadow: 0 0 8px rgba(255,213,106,.85), 0 0 18px rgba(248,165,27,.55), 0 0 30px rgba(248,165,27,.35);
}


/* ==========================
   MOBILE
========================== */

@media(max-width:768px) {

    .contact-card {
        width: 92%;
        padding: 25px;
    }

        .contact-card h1 {
            font-size: 32px;
        }

    .contact-intro {
        font-size: 18px;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-option {
        min-height: 80px;
        font-size: 19px;
    }

    .helpful-info {
        padding: 25px;
    }

        .helpful-info h2 {
            font-size: 26px;
        }

        .helpful-info p {
            font-size: 18px;
        }

    .contact-closing {
        font-size: 26px;
    }
}



/* ==========================
   CONTACT HOVER DETAILS
========================== */

.contact-option {
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    display: block;
    position: relative;
    z-index: 2;
}

.contact-detail {
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0;
    max-height: 0;
    color: #1C3F82;
    font-size: 17px;
    font-weight: 900;
    overflow: hidden;
    transition: .3s;
}

.contact-reveal:hover .contact-detail,
.contact-reveal:focus .contact-detail {
    opacity: 1;
    max-height: 40px;
}


/* ==========================
   SOCIAL ICONS AS FOREGROUND LAYERS
========================== */

.contact-social {
    position: relative;
    overflow: visible;
}

.contact-icon {
    position: absolute;
    z-index: 999;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.35)) drop-shadow(0 0 14px rgba(248,165,27,.25));
    transition: .25s;
}

/* Facebook floating icon */
.facebook-icon {
    width: 76px;
    height: 76px;
    right: -26px;
    bottom: -28px;
}

/* Rover floating icon */
.rover-icon {
    width: 76px;
    height: 76px;
    right: -26px;
    bottom: -28px;
}

.contact-social:hover .contact-icon {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 0 10px rgba(255,255,255,.55)) drop-shadow(0 0 18px rgba(248,165,27,.45));
}


/* ==========================
   MOBILE CONTACT DETAILS
========================== */

@media(max-width:768px) {

    .contact-detail {
        opacity: 1;
        max-height: 40px;
    }
}

/* ==========================
   INSTAGRAM FLOATING ICON
========================== */

.instagram-icon {
    width: 76px;
    height: 76px;
    right: -26px;
    bottom: -28px;
}


/* center Rover when Instagram makes the grid uneven */

.contact-options .contact-option:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 22px) / 2);
    justify-self: center;
}


@media(max-width:768px) {

    .contact-options .contact-option:last-child {
        grid-column: auto;
        width: auto;
    }
}