/* GLOBAL */

* {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	outline: none;}

html,
body {
	display: block;
	width: 100%;}

body {
	background: #fff;}


header {
	background: white;
	display: grid;
	grid-template-columns: 1fr 450px 1fr;
	grid-template-rows: 100px;
	align-items: center;
	padding: 0 3%;}

header ul {
	justify-self: end;}

header ul li {
	display: inline-block;}

header nav {
	justify-self: center;
	text-transform: uppercase;}

header nav a {
	text-decoration: none;
	font-size: 18px;
	border-right: 1px solid #999;
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
	color: #000;
	padding-right: 25px;
	padding-left: 25px;}

header nav a:last-of-type {
	padding-right: 0;
	border: none;}

header nav a:first-of-type {
	padding-left: 0;}

#hero {
	text-align: center;
	height: 300px;
	border: 1px solid black;
	color: #fff;
	background: url('../images/home/hero.jpg');
	background-size: cover;
	background-position: 100% 43%;}

#hero div {
	position: relative;
	top: 85px;
	display: inline-block;
	padding: 20px;
	background: rgba(0,0,0,0.75);}

#hero span {
	font-size: 42px;
	display: block;
	font-family: 'Ubuntu', sans-serif;
	margin-bottom: 10px;}

#hero p {
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;}

#searches {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr;
	grid-column-gap: 3%;
	padding: 50px 3%;}

#searches a {
	display: block;
	height: 400px;
	max-width: 100%;
	border: 1px solid black;
	text-decoration: none;}

#searches a span:nth-of-type(1) {
	font-family: 'Open Sans', sans-serif;
	font-size: 28px;
	text-transform: uppercase;
text-shadow: 0 0 5px #111;}

#searches a span:nth-of-type(2) {
	font-family: 'Ubuntu', sans-serif;

	font-size: 52px;
	line-height: 1;

color: #FFFFFF;
text-shadow: 0 0 5px #111;}

#searches a div {
		top: 100px;
		padding: 25px 0;
		background: rgba(0,0,0,0.6);}

#residential-sales {
	background: url('../images/home/residential-homes.png');
	background-size: cover;
	text-align: center;
	color: #fff;}

#list-your-property {
	background: url('../images/home/list-your-property.png');
	background-size: cover;
	text-align: center;
	color: #fff;}

#apartments-for-rent {
	background: url('../images/home/apartments-for-rent.png');
	background-size: cover;
	text-align: center;
	color: #fff;}

#searches a span {
	display: block;}

#intro {
	padding: 0 3%;
	text-align: center;}

#intro h2 {
	font-family: 'Ubuntu', sans-serif;
	font-size: 32px;
	margin-bottom: 20px;}

#intro hr {
	display: block;
	width: 200px;
	border: 1px solid #999;
	margin: 20px auto;}

#intro p {
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	width: 90%;
	margin: auto;
	line-height: 1.5;}

#intro p + p {
	margin-top: 30px;}

#intro a {
	background: black;
	color: white;
	display: block;
	font-family: 'Ubuntu', sans-serif;
	width: 450px;
	text-decoration: none;
	margin: 40px auto;
	border-radius: 10px;
	padding: 20px;
	font-size: 24px;
	text-align: center;}


#recent-news {
	min-height: 600px;
	border-top: 1px solid black;
	padding: 150px 3%;
	text-align: center;}

#recent-news h2 {
	font-family: 'Ubuntu', sans-serif;
	font-size: 32px;
	margin-bottom: 20px;}

#recent-news hr {
	display: block;
	width: 200px;
	border: 1px solid #999;
	margin: 20px auto;}

#recent-news li {
	list-style: none;
	font-family: 'Open Sans', sans-serif;
	margin: 10px 0;
	font-size: 18px;}

#recent-news a {
	text-decoration: none;}



/* FEATURED LISTINGS */

#featured {
	padding: 0 3%;
	margin-top: 50px;
	margin-bottom: 50px;
	text-align: center;}

#featured h2 {
	font-family: 'Ubuntu', sans-serif;
	font-size: 32px;
	margin-bottom: 20px;}

#featured hr {
	display: block;
	width: 200px;
	border: 1px solid #999;
	margin: 20px auto;}

#featured img {
	border: 1px solid black;
	display: block;
	margin: 10px auto;}

#featured a {
	font-family: 'Open Sans', sans-serif;
	font-size: 24px;
	text-decoration: none;}

#featured ul {
	display: inline-block;
	width: 250px;
	vertical-align: top;
	position: relative;
	margin-top: 15px;
	left: 75px;}

#featured a {
	display: inline-block;
	margin: auto;}

#featured span {
	display: block;
	margin-top: 20px;
	font-weight: bold;
	font-family: 'Open Sans', sans-serif;
	font-size: 24px;}

#featured li {
	font-family: 'Open Sans', sans-serif;
	text-align: left;
	margin:5px 0;}

#featured p {
	display: block;
	margin: 25px auto;
	width: 800px;
	line-height: 1.5;
	font-family: 'Open Sans', sans-serif;}

#featured p a {
	font-size: 16px;}




/* SLIDER */


.slider {
	display: block;
	margin: auto;
	width: 602px;}

.slick-dots {
	text-align: left;
	bottom: -20px;}

.slick-prev:before, .slick-next:before {
	color: black;}





#listing {
	padding: 50px 3%;
	margin-bottom: 50px;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	border-top: 1px solid black;}

#listing img {
	margin: 20px 0;
	border: 1px solid black;}

#listing h1 {
	margin-bottom: 25px;}

#listing p {
	width: 1200px;
	display: block;
	margin: 25px auto 0;
	line-height: 1.5;
	text-align: left;}

.specs {
	width: 600px;
	display: block;
	margin: 40px auto 0;
	padding: 15px 25px;
	text-align: left;
	list-style: none;}

.specs li {
	display: inline-block;
	width: 24%;
	vertical-align: top;}

.specs span {
	display: block;
	text-align: center;
	font-weight: bold;}

.specs span:nth-of-type(1) {
	font-size: 24px;}

.specs span:nth-of-type(2) {
	font-size: 12px;
	text-transform: uppercase;
	color: #222;}






#testimonials {
	padding: 50px 10%;}

#testimonials #wrap {
	margin-top: 50px;
	display: grid;
	grid-column-gap: 10%;
	grid-row-gap: 50px;
	grid-template-columns: 1fr 1fr;}

#testimonials h2 {
	text-align: center;
	font-family: 'Ubuntu', sans-serif;
	font-size: 32px;}

#testimonials .name {
	color: #0071b5;}



.person {
	font-family: 'Open Sans', sans-serif;
	display: grid;
	grid-column-gap: 3%;
	align-items: start;
	grid-template-columns: 60px 150px auto;
	justify-items: start;}

.person ul {
	top: -5px;
	width: 100%;
	list-style: none;}

.person ul li {
	color: #333;
	font-size: 14px;
	margin:5px 0;}

.person ul li span {
	display: inline;
	font-weight: bold;}

.person ul li:nth-of-type(1) {
	margin-top: 0;
	color: #0071b5;
	font-size: 18px;
	font-weight: bold;}

.person ul li:nth-of-type(2) {
	color: #000;
	font-weight: bold;}

.person p {
	line-height: 1.5;
	top: 10px;}


#thumbnails {
	display: grid;
	grid-template-columns: repeat(auto-fill, 314.5px);
	grid-column-gap: 3%;
	grid-row-gap: 50px;
	padding: 50px 3%;
	justify-items: center;}

#thumbnails a {
	width: 100%;
	height: 200px;
	border: 1px solid black;
	text-decoration: none;
	display: inline-block;}

#thumbnails a span {
	color: #fff;
	font-size: 24px;
	font-family: 'Open Sans', sans-serif;
	line-height: 1.25;
	padding: 10px;
	background: rgba(0,0,0,0.6);
	display: block;
	position: absolute;
	width: 100%;
	bottom: 0;}

#luxury-condo-developments {
	background: url('../images/home/luxury-condo-developments.png');}

#boston-office-space {
	background: url('../images/home/boston-office-space.png');}

#retail-space {
	background: url('../images/home/retail-space.png');}

#multi-family {
	background: url('../images/home/multi-family.png');}

#in-the-community {
	background: url('../images/home/in-the-community.png');}

#real-estate-blog {
	background: url('../images/home/real-estate-blog.png');}

#search-all-of-massachusetts {
	background: url('../images/home/search-all-of-massachusetts.png');}

#tenant-representation {
	background: url('../images/home/tenant-representation.png');}

#ten31-exchanges {
	background: url('../images/home/1031-exchanges.png');}

#quincy-neighborhoods {
	background: url('../images/home/quincy-neighborhoods.png');}

#boston-neighborhoods {
	background: url('../images/home/boston-neighborhoods.png');}


footer {
	padding: 50px 3%;
	color: #fff;
	display: grid;
	grid-template-columns: 500px auto;
	font-family: 'Open Sans', sans-serif;
	background: black;}

footer ul li {
	display: inline-block;}

footer ul li a {
	text-decoration: none;
	font-size: 12px;
	border-right: 1px solid #999;
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
	color: #fff;
	padding-right: 15px;
	padding-left: 15px;}

footer ul li:last-of-type a {
	padding-right: 0;
	border: none;}

footer > div:nth-of-type(2) {
	justify-self: end;}

footer a {
	text-decoration: none;
	color: #fff;}

footer span {
	display: inline-block;
	margin-bottom: 5px;}

footer p {
	margin-top: 30px;
	margin-bottom: 5px;}

footer .home {
	display: block;
	margin-bottom: 5px;}

footer .phone {
	margin-right: 20px;}

footer .copy {
	font-size: 12px;
	display: block;
	top: 90px;
	text-align: right;}




@media only screen 
and (max-width : 1024px) { 

	header nav a {
		padding-right: 15px;
		padding-left: 15px;
		font-size: 14px;}

	#searches a {
		height: 200px;}

	#searches a span:nth-of-type(1) {
		font-size: 18px;}		

	#searches a span:nth-of-type(2) {
		font-size: 34px;}

	#searches a div {
			top: 25px;
			padding: 25px 0;}

	#testimonials {
		padding: 50px 3%;}

	#testimonials #wrap {
		grid-row-gap: 25px;
		grid-column-gap: 5%;}

	.person {
		grid-template-columns: 60px 125px auto;}

	#thumbnails {
		grid-template-columns: 1fr 1fr 1fr 1fr;}

	#thumbnails a {
		height: 200px;}

	#thumbnails a span {
		font-size: 18px;}

	footer ul {
		top: 15px;}

	footer ul li a {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 14px;}

	footer .copy {
		top: 92px;}

}


@media only screen 
and (max-width : 760px) { 

	header {
		grid-template-columns: 1fr 1fr;}

	header ul {
		display: none;}

	header nav {
		justify-self:end;}

	header nav a {
		padding-right: 7px;
		border: none;
		padding-left: 7px;}

	#hero {
		height: 250px;}

	#hero br {
		display: none;}

	#hero div {
		top: 40px;}

	#searches {
		padding: 25px 3%;}

	#searches a {
		height: 150px;}

	#searches a div {
		top: 10px;}

	#searches a span:nth-of-type(1) {
		font-size: 16px;}		

	#searches a span:nth-of-type(2) {
		font-size: 28px;}

	#intro h2 {
		font-size: 28px;}

	#intro p {
		width: 100%;}

	#intro a {
		width: 100%;}

	#testimonials #wrap {
		grid-row-gap: 75px;}

	.person ul li {
		margin: 1px 0;
	    font-size: 12px;}

	.person ul li:nth-of-type(1) {
		font-size: 14px;}

	.person {
		grid-template-columns: 60px 80px auto;}

	#thumbnails {
		grid-template-columns: 1fr 1fr;}

	#thumbnails a {
		height: 200px;}

	#thumbnails a span {
		font-size: 18px;}

	footer .phone {
		font-size: 14px;}

	footer .address {
		font-size: 14px;}


}



@media only screen 
and (max-width : 540px) { 

	header nav a {
		padding: 0;
		text-align: right;
		font-size: 12px;
		display: block;}

	#hero div {
		top: 45px;}

	#hero span {
		font-size: 32px;}

	#hero p {
		font-size: 16px;}

	#searches a span:nth-of-type(2) {
		font-size: 18px;}

	#searches a {
		height: 127px;}

	#intro p {
		font-size: 14px;}

	#intro a {
		font-size: 16px;}

	#testimonials #wrap {
	    grid-template-columns: 1fr;}

	footer {
		padding: 25px 3%;
		grid-template-columns: 1fr;
		justify-items: center;}

    footer .flags {
    	max-width: 100%;}

	footer > div:nth-of-type(2) {
		justify-self: center;}

	footer p {
		font-size: 14px;
		margin-top: 25px;}

	footer ul {
		top: 20px;}

	footer .copy {
		top: 15px;
		text-align: center;}

}




@media only screen 
and (max-width : 420px) { 

	header {
		grid-template-columns: 1fr;
		justify-items: center;}

	header nav {
		display: none;}

	#hero {
		height: 200px;}

	#hero div {
		top: 25px;}

	#hero span {
		font-size: 26px;}

	#hero p {
		font-size: 14px;}

	footer a img {
		display: block;
		margin: auto;}


	footer p {
		margin-top: 20px;
		text-align: center;}


}