/*===================================================
    Contact us page
    (shared inner-hero styles live in common.css)
===================================================*/

/*===inner hero - button pair on the right===*/
.innerHeroSec{
    .innerHeroRow{
        align-items: flex-start;
    }
    .innerHeroCont{
        flex: 1;
        .innerHeroSub{
            max-width: 880px;
        }
    }
    .heroBtnWrap{
        flex-shrink: 0;
        /*===buttons sit level with the sub copy, per the design===*/
        align-self: flex-end;
        margin-bottom: 4px;
        ul{
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 0;
            li{
                a{
                    padding: 13px 26px;
                    font-size: 15px;
                    white-space: nowrap;
                    background-color: #fff;
                    border-color: #d4dbe4;
                    &:hover{
                        background-color: var(--blue);
                        border-color: var(--blue);
                    }
                    &.blueBtn{
                        background-color: var(--blue);
                        border-color: var(--blue);
                    }
                }
            }
        }
    }
}
@media (max-width: 991px){
    .innerHeroSec{
        /*===centred with the rest of the stacked hero in common.css===*/
        .heroBtnWrap{
            margin-top: 10px;
        }
    }
}

/*===contact channels - office / call / email cards===*/
.channelSec{
    .headingWrap{
        .tagHolder{
            max-width: 100%;
        }
    }
    .channelSub{
        max-width: 880px;
        margin: 20px auto 50px;
        color: #1d2a36;
        font-size: 18px;
        line-height: 1.7;
        letter-spacing: 0.2px;
    }
    .channelGrid{
        .row{
            row-gap: 26px;
        }
        .channelCard{
            height: 100%;
            padding: 40px 26px;
            background-color: #eef3f8;
            border-radius: 20px;
            transition: transform .4s ease, box-shadow .4s ease, background-color .4s ease;
            .channelTitle{
                display: block;
                font-size: 20px;
                font-weight: 700;
                color: var(--blue);
                margin-bottom: 20px;
                transition: color .4s ease;
            }
            .channelDivider{
                display: block;
                height: 1px;
                margin: 24px 0;
                background-color: #cdd9e6;
                transition: background-color .4s ease;
            }
            .channelList{
                margin: 0;
                li{
                    display: flex;
                    align-items: flex-start;
                    gap: 16px;
                    margin-bottom: 18px;
                    &:last-child{
                        margin-bottom: 0;
                    }
                    i,
                    svg{
                        flex-shrink: 0;
                        margin-top: 2px;
                        font-size: 24px;
                        width: 1em;
                        height: auto;
                        color: var(--blue);
                        fill: currentColor;
                        transition: color .4s ease;
                    }
                    /*===a row with a grey label above its value: the icon
                         drops past the label (16px x 1.55 + its 2px gap) to
                         sit centred on the number or address it belongs to===*/
                    &.hasLabel{
                        i,
                        svg{
                            margin-top: 29px;
                        }
                    }
                    p{
                        margin: 0;
                        font-size:18px;
                        line-height: 1.55;
                        letter-spacing: 0.2px;
                        color: #1d2a36;
                        transition: color .4s ease;
                        .channelLabel{
                            display: block;
                            font-size:16px;
                            color: #6f7d8a;
                            margin-bottom: 2px;
                            transition: color .4s ease;
                        }
                        /*===two numbers on one line: the slash between the
                             links matches their weight===*/
                        .channelNums{
                            font-weight: 600;
                        }
                        a{
                            color: #1d2a36;
                            font-weight: 600;
                            transition: color .3s ease;
                            &:hover{
                                color: var(--blue);
                            }
                        }
                    }
                }
            }
            /*===card turns blue on hover, copy flips to white===*/
            &:hover{
                transform: translateY(-5px);
                box-shadow: 0 16px 34px rgb(11 51 85 / 25%);
                background-color: var(--blue);
                .channelTitle{
                    color: #fff;
                }
                .channelDivider{
                    background-color: rgb(255 255 255 / 35%);
                }
                .channelList{
                    li{
                        i,
                        svg{
                            color: #fff;
                        }
                        p{
                            color: #fff;
                            .channelLabel{
                                color: rgb(255 255 255 / 75%);
                            }
                            a{
                                color: #fff;
                                &:hover{
                                    color: #fff;
                                    text-decoration: underline !important;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

/*===map===*/
.mapSec{
    .headingWrap{
        .tagHolder{
            max-width: 100%;
        }
    }
    .mapWrapOuter{
        overflow: hidden;
        a{
            display: block;
        }
        img{
            display: block;
            width: 100%;
            height: 709px;
            object-fit: cover;
            transition: transform .6s ease;
        }
        &:hover img{
            transform: scale(1.03);
        }
        /*===live embed: same footprint as the image it replaces===*/
        iframe{
            display: block;
            width: 100%;
            height: 709px;
            border: 0;
        }
    }
}
/*===709px filled most of a laptop screen; same proportion as at 1920===*/
@media (max-width: 1440px){
    .mapSec{
        .mapWrapOuter{
            img,
            iframe{
                height: 520px;
            }
        }
    }
}
@media (max-width: 991px){
    .mapSec{
        .mapWrapOuter{
            border-radius: 30px;
            img,
            iframe{
                height: 420px;
            }
        }
    }
}

/*===route cards - image tiles to each vertical===*/
.routeSec{
    .routeSub{
        max-width: 770px;
        margin: 20px auto 50px;
        color: #1d2a36;
        font-size: 18px;
        letter-spacing: 0.2px;
    }
    .routeGrid{
        .row{
            row-gap: 26px;
        }
        .routeCard{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            height: 100%;
            min-height: 376px;
            padding: 30px 28px;
            border-radius: 25px;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            position: relative;
            transition: transform .4s ease, box-shadow .4s ease;
            /*===white wash so the copy stays readable over the photo===*/
            &::before{
                content: '';
                position: absolute;
                inset: 0;
                background:linear-gradient(169deg, #ffffffe8 32%, rgb(255 255 255 / 0%) 80%);
            }
            &:hover{
                transform: translateY(-6px);
                box-shadow: 0 20px 40px rgb(11 51 85 / 20%);
            }
            .routeCont{
                position: relative;
                z-index: 1;
                .routeTitle{
                    display: block;
                    font-size: 25px;
                    font-weight: 700;
                    color: #1d2a36;
                    margin-bottom: 10px;
                }
                p{
                    margin: 0;
                    max-width: 460px;
                    font-size: 18px;
                    line-height: 1.55;
                    letter-spacing: 0.2px;
                    color: #1d2a36;
                }
            }
            .btnOne{
                position: relative;
                z-index: 1;
                padding: 13px 30px;
                font-size: 17px;
            }
        }
    }
}
@media (max-width: 767px){
    .routeSec{
        .routeGrid{
            .routeCard{
                min-height: 300px;
                .routeCont .routeTitle{
                    font-size: 21px;
                }
            }
        }
    }
}

/*===================================================
    Contact page - responsive gaps
===================================================*/

/*===The address / email lines are flex items, so they default to
     min-width:auto and an unbroken address ("info@amcgroupindia.com")
     sets the column floor. That pushed the page ~3px sideways around
     1024. Same fix as the footer contact list.===*/
.channelSec .channelCard .channelList li p{
    min-width: 0;
    overflow-wrap: anywhere;
    a{
        overflow-wrap: anywhere;
    }
}

/*===Route tiles are col-lg-6 with no medium step, so between 768 and
     991 a single card stretched the full ~950px at 376px tall. Two up
     matches how the channel cards behave at the same width.===*/
@media (min-width: 768px) and (max-width: 991px){
    .routeSec .routeGrid .row > [class*='col-']{
        flex: 0 0 auto;
        width: 50%;
    }
    .routeSec .routeGrid .routeCard{
        padding: 26px 22px;
        .routeCont .routeTitle{
            font-size: 22px;
        }
        .routeCont p{
            font-size: 16px;
        }
    }
}

@media (max-width: 767px){
    /*===a 420px map is a lot of a phone screen===*/
    .mapSec .mapWrapOuter img{
        height: 320px;
    }
}
