/* ── CONTACT PAGE ── */

/* ── HEADER OVERRIDES ── */

.contact-header {
    background-image: none;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 1010;
}

/* Hero image fades out on load */
.contact-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/heroimg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: bgFadeOut 0.85s ease 0.1s both;
}

.contact-header::after {
    display: none;
}

.contact-header .nav {
    position: relative;
    z-index: 1;
}

.contact-header .navbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ── SPLIT LAYOUT ── */

.contact-split {
    display: flex;
    height: 100vh;
}

.contact-left {
    width: 38%;
    padding: 60px 50px 70px 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-middle {
    width: 32%;
    padding: 70px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.contact-right {
    width: 30%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.contact-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── BIG HEADING ── */

.contact-big-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 96px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2px;
    color: #000;
    margin: 0 0 40px;
}

/* ── TAGLINE ── */

.contact-tagline {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #000;
    margin: 0;
    max-width: 300px;
}

/* ── INFO GRID ── */

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.contact-info-cell {
    padding: 20px 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.contact-info-cell:nth-child(even) {
    padding-left: 40px;
    padding-right: 0;
}

/* Dim siblings on hover */
.contact-info-grid:has(.contact-info-cell:hover) .contact-info-cell {
    opacity: 0.35;
}

.contact-info-grid:has(.contact-info-cell:hover) .contact-info-cell:hover {
    opacity: 1;
}

.contact-info-label {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #F8630D;
    margin: 0 0 8px;
}

.contact-info-value {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    line-height: 1.7;
    margin: 0;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

a.contact-info-value:hover {
    color: #F0956A;
}

.contact-info-sub {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #888;
    margin: 0;
    letter-spacing: 0.2px;
}

.contact-card-link {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    margin-top: 10px;
    transition: color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    width: fit-content;
}

.contact-card-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F0956A;
    transition: width 0.25s;
}

.contact-card-link:hover {
    color: #F0956A;
}

.contact-card-link:hover::after {
    width: 100%;
}

.contact-card-arrow {
    font-size: 12px;
    transition: transform 0.25s;
}

.contact-card-link:hover .contact-card-arrow {
    transform: translateX(3px);
}

/* ── ENTRY ANIMATIONS ── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes navToCenter {
    from { transform: translateX(50%); opacity: 0; }
    to   { transform: translateX(-50%); opacity: 1; }
}

@keyframes bgFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Image slides in from the right */
.contact-right {
    animation: slideFromRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Navbar sweeps from the right into the center */
.contact-header .navbar {
    animation: navToCenter 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Left content staggers up */
.contact-big-title {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.contact-tagline {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}

.contact-info-cell:nth-child(1) { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s  both; }
.contact-info-cell:nth-child(2) { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }
.contact-info-cell:nth-child(3) { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.74s both; }
.contact-info-cell:nth-child(4) { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.86s both; }

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
    .contact-header {
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        width: 100%;
    }

    .contact-header::before {
        display: none;
    }

    .contact-header .navbar {
        position: static;
        left: auto;
        transform: none;
        animation: none;
    }

    .contact-split {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .contact-left {
        width: 100%;
        padding: 50px 24px 36px;
    }

    .contact-middle {
        width: 100%;
        padding: 0 24px 50px;
        align-items: flex-start;
    }

    .contact-right {
        width: 100%;
        height: 280px;
        position: relative;
        animation: none;
    }

    .contact-right img {
        position: absolute;
    }

    .contact-big-title {
        font-size: 60px;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cell:nth-child(even) {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .contact-big-title {
        font-size: 44px;
    }
}
