﻿/* ============================================================
   CONTACT US SECTION � PREMIUM STITCHED LEATHER THEME
   ============================================================ */

.contact-outer-wrapper {
    padding: 70px 0 90px;
    position: relative;
    background: var(--bg-alt);
    /* Subtle paper texture on the background */
    background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .015) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(120, 95, 60, .01) 0 1px, transparent 1px 3px);
}

    /* Only add the divider if it follows another .contact-outer-wrapper */
    .contact-outer-wrapper + .contact-outer-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1.5px;
        background-image: linear-gradient(90deg, rgba(5, 93, 83, .4) 0 10px, transparent 10px 20px);
        background-size: 20px 1.5px;
        background-repeat: repeat-x;
        /* Added this just to be safe */
    }

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 60px;
    /* Space for the floating badge */
}

    .contact-wrapper .contact-box:has(p) {
        margin-top: 40px;
    }

/* ============================================================
   PREMIUM CONTACT BOX (Leather Patch)
   ============================================================ */
.contact-box {
    position: relative;
    text-align: center;
    border-radius: 16px;
    flex: 0 1 280px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Deep Warm Leather Base */
    background: var(--grain), radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .15) 0 1px, transparent 1px), radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .08) 0 1px, transparent 1px), linear-gradient(160deg, #fdfbf6 0%, #f2ebd9 50%, #e8dcc3 100%);
    background-size: 140px 140px, 3px 3px, 5px 5px, 100% 100%;
    background-blend-mode: multiply, normal, normal, normal;
    /* Leather Embossed Edge */
    border: 1px solid rgba(120, 80, 35, .25);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(120, 80, 35, .1), 0 12px 24px -10px rgba(60, 40, 15, .2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* overflow: hidden; */
}

    /* The Inner Stitched Seam */
    .contact-box::before {
        content: "";
        position: absolute;
        inset: 8px;
        border: 1.5px dashed rgba(120, 80, 35, .35);
        border-radius: 10px;
        pointer-events: none;
        z-index: 1;
        transition: all 0.4s ease;
        filter: drop-shadow(0 .5px 0 rgba(255, 255, 255, .8));
    }

    /* Corner Stitching Tacks (The Crosses) */
    .contact-box::after {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 10px;
        pointer-events: none;
        z-index: 1;
        background:
        /* Top-Left */
        linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) 6px 6px / 10px 1.5px no-repeat, linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) 6px 6px / 1.5px 10px no-repeat,
        /* Top-Right */
        linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) calc(100% - 6px) 6px / 10px 1.5px no-repeat, linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) calc(100% - 6px) 6px / 1.5px 10px no-repeat,
        /* Bottom-Left */
        linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) 6px calc(100% - 6px) / 10px 1.5px no-repeat, linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) 6px calc(100% - 6px) / 1.5px 10px no-repeat,
        /* Bottom-Right */
        linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) calc(100% - 6px) calc(100% - 6px) / 10px 1.5px no-repeat, linear-gradient(rgba(120, 80, 35, .6), rgba(120, 80, 35, .6)) calc(100% - 6px) calc(100% - 6px) / 1.5px 10px no-repeat;
        opacity: 0.6;
        transition: opacity 0.4s ease;
    }

    /* Hover State: Lifts up, turns teal, stitching glows */
    .contact-box:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: rgba(5, 93, 83, .5);
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, .9), inset 0 -2px 8px rgba(5, 93, 83, .15), 0 24px 48px -16px rgba(5, 93, 83, .35);
    }

        .contact-box:hover::before {
            border-color: rgba(5, 93, 83, .65);
            inset: 6px;
            /* Thread tightens slightly on hover */
        }

        .contact-box:hover::after {
            opacity: 1;
        }

    /* ============================================================
   FLOATING WAX-SEAL BADGE (The <p> tag)
   ============================================================ */
    .contact-box p {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: "Tahoma", sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #fff8ec;
        font-size: 13px;
        padding: 8px 24px;
        border-radius: 999px;
        white-space: nowrap;
        width: 100%;
        z-index: 10;
        /* Deep Teal Leather Badge */
        background: var(--grain), linear-gradient(155deg, #055d53 0%, #044a42 60%, #033832 100%);
        background-blend-mode: multiply, normal;
        /* Emboss & Stitch */
        border: 1px solid rgba(0, 0, 0, .5);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 16px -6px rgba(5, 93, 83, .6);
        text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
        transition: all 0.5s ease;
    }

        /* Stitched outline on the badge */
        .contact-box p::before {
            content: "";
            position: absolute;
            inset: 4px;
            border: 1px dashed rgba(255, 255, 255, .6);
            border-radius: 999px;
            pointer-events: none;
        }

    .contact-box:hover p {
        background: linear-gradient(155deg, #df2127 0%, #b5161b 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 20px -6px rgba(223, 33, 39, .6);
    }

    /* ============================================================
   IMAGE
   ============================================================ */
    .contact-box img {
        width: 100%;
        object-fit: cover;
        object-position: top;
        aspect-ratio: 9/10;
        border-radius: 8px;
        background: #fff;
        padding: 10px;
        /* Inner shadow for depth */
        box-shadow: inset 0 4px 12px rgba(0, 0, 0, .06);
        border: 1px solid rgba(120, 80, 35, .15);
        position: relative;
        z-index: 2;
        transition: transform 0.5s ease;
    }

    .contact-box:hover img {
        transform: scale(1.04);
    }

    /* ============================================================
   TEXT & LINKS
   ============================================================ */
    .contact-box h3 {
        position: relative;
        z-index: 2;
        font-size: 20px;
        font-weight: 700;
        color: var(--ink);
        margin-block: 18px 14px;
        letter-spacing: -0.01em;
    }

    .contact-box a {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-weight: 500;
        font-size: 15px;
        margin-bottom: 8px;
        padding: 6px 10px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .contact-box a svg {
            color: var(--primary);
            transition: all 0.3s ease;
        }

            .contact-box a svg.fa-linkedin {
                font-size: 22px;
            }

        .contact-box a:hover {
            color: var(--primary);
            background-color: rgba(5, 93, 83, .06);
            transform: translateY(-2px);
        }

            .contact-box a:hover svg {
                color: var(--primary);
                transform: scale(1.15) rotate(-5deg);
            }

    /* ============================================================
   SPECIAL BOX: LOGO
   ============================================================ */
    .contact-box:has(.logo) {
        width: 180px;
        min-width: 180px;
        flex-basis: 180px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        box-shadow: none;
    }

        .contact-box:has(.logo)::before,
        .contact-box:has(.logo)::after {
            display: none;
        }

        .contact-box:has(.logo) img {
            width: 120px;
            height: auto;
            border: none;
            box-shadow: none;
            background: transparent;
            padding: 0;
            filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .15));
        }

        .contact-box:has(.logo):hover {
            transform: translateY(-6px) scale(1.05);
            box-shadow: none;
        }

    /* ============================================================
   SPECIAL BOX: ACTION (Book Now / Buttons)
   ============================================================ */
    .contact-box.border-0.bg-white {
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 30px 20px;
        /* Pure White Leather */
        background: var(--grain), linear-gradient(160deg, #ffffff 0%, #f4f4f4 100%);
        background-blend-mode: multiply, normal;
        border: 1px solid rgba(120, 80, 35, .12);
    }

        .contact-box.border-0.bg-white img {
            aspect-ratio: auto;
        }

        .contact-box.border-0.bg-white h3 {
            font-size: 26px;
            margin-top: 10px;
            line-height: 1.2;
        }

        /* Apply the site's signature button to this box */
        .contact-box.border-0.bg-white .white-btn {
            width: 100%;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            padding: 14px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .contact-outer-wrapper {
        padding: 50px 0 60px;
    }

    .contact-wrapper {
        gap: 30px;
        padding-top: 50px;
    }

        .contact-wrapper .contact-box:has(p) {
            margin-top: 30px;
        }
}

@media (max-width: 767px) {
    .contact-box {
        flex: 0 1 100%;
        max-width: 340px;
        margin-inline: auto;
    }

        .contact-box p {
            font-size: 14px;
            padding: 6px 18px;
        }

        .contact-box.border-0.bg-white {
            width: 100%;
            max-width: 340px;
            min-height: 250px;
        }
}
