/*==================================================
    LOCATIONS PAGE
    Page level additions only - everything else comes
    from css/style.css, the globe lives in css/globe.css
==================================================*/

/*==================================================
    BANNER - centred hero over the rising line pattern
==================================================*/
.loc-banner {position: relative; overflow: hidden; margin-top: 56px; min-height: calc(100vh - 56px); padding-top: 80px; padding-bottom: 80px;}
.loc-banner .text-block {position: relative; z-index: 1; max-width: 820px; margin: 0 auto;}
.loc-banner h1 {max-width: 860px; margin: 0 auto 24px;}
.loc-banner p {max-width: 690px; margin: 0 auto;}
/*the line curtain hangs from the top of the band on desktop, like the design*/
.loc-banner-pattern {top: 0; bottom: auto; height: 62%; opacity: 0.9;}
.loc-banner-pattern video {object-position: top;}

/*==================================================
    FIND AN OFFICE - heading + region tabs over the globe
==================================================*/
.find-office {position: relative;}
.find-office-head {position: relative; z-index: 3;}
.find-office-head h2 {margin-bottom: 32px;}

.region-tabs {flex-wrap: wrap; justify-content: center; gap: 8px;}
.region-tab {padding: 10px 20px; border: solid 1px #333E47; background: transparent; color: #ffffff; font-size: 14px; line-height: 128%; letter-spacing: 0.4%; transition: border-color 0.25s ease, color 0.25s ease;}
.region-tab:hover {border-color: #83F0FF;}
.region-tab.active {background-color: #83F0FF; border-color: #83F0FF; color: #1C2832;}

/*globe stage - wide globe cropped by the bottom of the band, like the design*/
.globe-office .globe-stage {height: 56.5vw; min-height: 560px; max-height: 900px;}

/*==================================================
    OFFICE DIRECTORY - region groups of cards
==================================================*/
.office-group {padding-top: 48px;}
.office-group-head {gap: 8px 16px; padding-bottom: 32px;}
.office-count {font-size: 18px; color: #ffffff;}
.office-group.is-hidden {display: none;}

/*cards sit flush with a thin page-colour seam between columns, like the design*/
.office-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 3px;}
.office-card {display: flex; flex-direction: column; height: 100%;}
.office-card .office-text {display: flex; flex-direction: column; flex: 1 1 auto; min-height: 247px; padding: 40px 40px 30px;}
.office-card .office-city {margin-bottom: 6px;}
.office-card .office-role {margin-bottom: 44px; font-size: 16px;}
.office-card .office-links {display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: auto;}
.office-card .office-links a {font-size: 16px; color: #FFDE50; text-decoration: underline; text-underline-offset: 4px;}
.office-card .office-links a:hover {color: #83F0FF;}
.office-card .office-img {height: 250px; overflow: hidden; background-color: #1C2832;}
/*no transition here - the scroll zoom-out (locations.js) drives the transform every frame*/
.office-card .office-img img {width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform;}

/*load more - the design only collapses long groups on mobile; desktop shows all*/
.office-more {display: none; justify-content: center; padding-top: 40px;}

/*==================================================
    A NETWORK BUILT TO DELIVER
==================================================*/
.network-deliver .heading-card {margin-bottom: 60px;}
.network-deliver .heading-card p {max-width: 600px; margin: 0 auto;}
.network-cards .network-card {width: 100%; min-height: 460px; margin: 0 -1px -1px 0; padding: 40px;}
.network-cards .net-no {font-size: 60px; line-height: 1.1; letter-spacing: -3.4%;}
.network-cards .net-text {margin-top: auto; padding-top: 120px;}
.network-cards .net-text h3 {margin-bottom: 12px;}
.network-cards .net-text p {margin-bottom: 0; color: rgba(255, 255, 255, 0.85);}

/*==================================================
    RESPONSIVE
==================================================*/
@media only screen and (max-width: 1199px) {
    .office-card .office-text {min-height: 0; padding: 32px 32px 28px;}
    .office-card .office-img {height: 210px;}
}

@media only screen and (max-width: 991px) {
    //.loc-banner {min-height: 0;} // CCWS2-1353 Animation is positioned too close to the text on mobile
    .office-grid {grid-template-columns: repeat(2, 1fr);}
    .globe-office .globe-stage {height: 100vw; min-height: 480px; max-height: 760px;}
    .network-cards .network-card {min-height: 0;}
    .network-cards .net-text {padding-top: 80px;}
}

@media only screen and (max-width: 767px) {
    .loc-banner {padding-top: 60px; padding-bottom: 0; min-height: 0;}
    .loc-banner-pattern {position: relative; top: auto; height: auto; margin-top: 48px;}
    .loc-banner-pattern video {width: 100%; height: 300px; object-fit: cover;}
    .find-office {padding-top: 60px;}
    .find-office-head h2 {margin-bottom: 24px;}
    .region-tabs {justify-content: center; flex-wrap: wrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px;}
    .region-tabs::-webkit-scrollbar {display: none;}
    .region-tab {flex: none; padding: 12px 20px; font-size: 16px;}
    .globe-office .globe-stage {height: 130vw; min-height: 420px; max-height: 640px;}
    .globe-office .globe-track {top: 70%;}

    /*mobile directory - horizontal media cards like the design*/
    .office-group {padding-top: 40px;}
    .office-group-head {padding-bottom: 24px; align-items:center;}
    .office-group-head h2 {flex: 1 1 auto;}
    .office-count {font-size: 16px;}
    .office-grid {grid-template-columns: 1fr; gap: 16px;}
    .office-card {flex-direction: row-reverse; align-items: stretch;}
    .office-card .office-text {padding: 24px; min-width: 0;}
    .office-card .office-city {font-size: 20px !important;}
    .office-card .office-role {font-size: 12px;margin-bottom: 20px;}
    .office-card .office-links {flex-direction: column; gap: 8px;}
    .office-card .office-links a {font-size: 12px;}
    .office-card .office-img {width: 128px; flex: none; height: auto;}
    .office-card .office-img img {transform: none !important;} /*no scroll zoom on phones, same as .img-card*/
    .office-col.is-collapsed {display: none;}
    .office-more {display: flex;}
    .office-group.is-expanded .office-more {display: none;}

    .network-deliver .heading-card {margin-bottom: 40px; text-align: left !important;}
    .network-cards .net-no {font-size: 44px;}
    .network-cards .net-text {padding-top: 64px;}
}

@media only screen and (max-width: 639px) {
  .globe-office .globe-stage {margin-top: -25%;}
}