
/* Start @media(max-width:1200px) */

@media(max-width: 1200px){

	.container{
		padding-left: 30px;
		padding-right: 30px;
	}

} 

/* Start @media(max-width:1024px) */

@media (max-width: 1024px){
	/* Tablets: keep 2 columns for 3-column grid so layout isn't too large */
	.works_3-columns .works-item{
		width: 50%;
		height: 45vh;
	}
	.works_2-columns .works-item,
	.works_4-columns .works-item{
		float: none;
		width: 100%;
		height: 60vh;
	}
}

@media (max-width: 768px){
	/* Phones: single column */
	.works_3-columns .works-item{
		float: none;
		width: 100%;
		height: 50vh;
	}

	/* Homepage hero: subtle centred scroll-down hint (mobile only) */
	.hero-scroll-hint{
		display: block;
		text-align: center;
		margin-top: 28px;
	}
	.hero-scroll-hint .ti-arrow-down{
		font-size: 1.8em;
		color: rgba(0, 0, 0, 0.35);
		animation: hero-scroll-bounce 2s ease-in-out infinite;
	}
}
@keyframes hero-scroll-bounce{
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* Start @media(max-width:860px) */

@media (max-width: 860px){

	.about-us, .contact-us{
		margin: 100px auto;
		width: 85%;
	}

	.services,.contacts {
		padding: 90px 0;
	}

	.services-item, .contact-item{
		float: none;
		width:90%;
		margin: auto;
		padding-bottom: 70px;
	}

	.services-item:nth-of-type(3),
	.contact-item:nth-of-type(3){
		padding-bottom: 0;
	}

	.hero-portfolio{
		text-align: center;
		padding: 70px 0;
	}

	.hero-portfolio p{
		width: 70%;
	}

} 

/* Start @media(max-width:670px) */

/* Tablet and mobile: long logo subtle top centre, then nav row Portfolio left / About right */
/* Logo area: off-white/grey bg; nav area: lighter grey bg */
@media (max-width: 1024px){
	header{
		height: auto;
		min-height: 85px;
		position: relative;
	}

	header::before{
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 70px;
		background: #f5f5f5;
		z-index: 0;
	}

	header::after{
		content: '';
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		bottom: 0;
		background: #fafafa;
		z-index: 0;
	}

	header .container{
		position: relative;
		z-index: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.nav-button,
	.close-btn{
		display: none !important;
	}

	header .logo{
		order: 1;
		margin-bottom: 14px;
	}

	header .logo img{
		max-height: 32px;
		opacity: 0.72;
	}

	#navigation{
		order: 2;
		display: block;
		position: static;
		width: 100%;
		margin-left: 0;
	}

	.main-menu{
		position: static;
		transform: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		gap: 0;
		padding: 16px 0 0 0;
		min-height: 48px;
	}

	.main-menu > li{
		float: none;
		line-height: 1.4;
		margin: 0;
		padding: 0;
	}

	.main-menu > li:first-child{
		text-align: left;
	}

	.main-menu > li:last-child{
		text-align: right;
	}

	.main-menu li a{
		font-size: 1.15em;
		font-weight: 400;
		letter-spacing: 3.2px;
	}

	.main-menu li ul{
		visibility: hidden;
	}

	/* Single project tablet/mobile: centre portfolio button near top, more space before tag/h1 */
	.single-project-back{
		text-align: center;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 28px;
	}
	.single-project-back .back-to-portfolio{
		display: inline-block;
	}
}

@media (max-width: 670px){
	/* Mobile: same two-row layout, slightly tighter */
	.main-menu li a{
		font-size: 1.2em;
	}

	.works_2-columns .works-item,
	.works_3-columns .works-item,
	.works_4-columns .works-item{
		height: 50vh;
	}

	/* Mobile: body edge-to-edge, less padding */
	.container{
		padding-left: 14px;
		padding-right: 14px;
	}

	/* Single project mobile: portfolio button centred near top, more space before tag/h1 */
	.single-project{
		margin-top: 24px;
	}
	.single-project-back{
		margin-bottom: 32px;
	}
	.single-project h1{
		font-size: 3.2em;
		padding: 12px 0 28px 0;
	}
	.single-project-info{
		margin: 36px auto;
		width: 100%;
	}
}

@media (max-width: 470px){
	.container{
		padding-left: 12px;
		padding-right: 12px;
	}
	.single-project h1{
		font-size: 2.6em;
		padding: 10px 0 22px 0;
	}
} 

/* Start @media(max-width:470px) */

@media (max-width: 470px){

	.hero-content h1{
		font-size: 5em;
		padding: 0 15px;
	}

	.hero-content h2{
		padding: 20px 20px 0 20px ;
	}

	.single-project > img:nth-of-type(3){
		float: none;
		width: 100%;
		padding-right:0px;
		margin-bottom: 30px;
	}

	.single-project > img:nth-of-type(4){
		float: none;
		width: 100%;
		padding-left:0px;
	}

	footer{
		display: flex;
		align-items: center;
		text-align: center;
	}

	.footer-content{
		padding: 40px 0;
		display: flex;
		align-items: center;
	}

	footer .container .copyright{
		margin-bottom: 0;
	}

	.social-links{
		float: none;
	}

	.social-links li{
		margin-left: 10px;
		margin-right: 10px;
	}
} 
