/* ===================================
   STYLES7.CSS - Homepage Styles
   Extends styles3.css
   =================================== */

/* Ensure all grid areas don't exceed viewport */
.header,
.hero,
.featured_showcase,
.featured_clear,
.featured_main,
.video,
.photo,
.featured_middle,
.middle_clear,
.featured_bottom,
.bottom_photo,
.bottom_contact,
.footer {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

/* Fix first_card overflow on large screens */
.first_card {
	overflow: hidden;
}

/* Hide down arrows on large screens - only show on mobile */
.first_card .alt_arrow {
	display: none;
}

.first_card .arrow {
	max-height: 80px;
	width: auto;
	max-width: 150px;
}

/* Large screens - ensure first_card content fits */
@media screen and (min-width: 1651px) {
	.first_card {
		overflow: hidden;
		justify-content: space-evenly;
	}
	
	.first_card div {
		font-size: 32px;
		line-height: 36px;
	}
	
	.first_card .arrow {
		height: 90px;
		width: auto;
		max-width: 160px;
	}
}




/* Enhanced content blocks with proper image frame zoom effect */
.content_blocks {
	text-align: center;
	padding: 0 0.5em;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.content_blocks .image-container {
	position: relative;
	width: 100%;
	border: 4px solid #707070;
	overflow: hidden;
	box-sizing: border-box;
}

.content_blocks .image-container img {
	transition: transform 0.3s ease;
	width: calc(100% + 8px);
	height: auto;
	display: block;
	transform-origin: center center;
	margin: -4px;
}

.content_blocks:hover .image-container img {
	transform: scale(1.03);
}

/* White border on hover for black background sections */
.featured_main .content_blocks:hover .image-container {
	border-color: #FFF;
}

.content_blocks .content_title {
	margin: auto;
	width: 18em;
	max-width: 100%;
}

.content_blocks .learn-more-btn {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	text-transform: uppercase;
	font-size: 50px;
	line-height: 64px;
	color: white;
	border: 2px solid rgba(140, 14, 29, 0.6);
	border-radius: 28px;
	background-color: rgba(140, 14, 29, 0.6);
	padding: .1em .5em .04em .5em;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
	white-space: nowrap;
}

.content_blocks:hover .learn-more-btn {
	opacity: 1;
}

/* Mobile: Show button when scrolled into view (triggered by JS) */
@media screen and (max-width: 1024px) {
	.content_blocks .learn-more-btn.visible {
		opacity: 1;
	}
}

/* Ensure content_area doesn't overflow */
.content_area {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.featured_middle p {
  width: 80%;
}
.featured_middle h1 {
  margin: 50px 10px 20px 10px;
}
.showcase_desc {
  padding: 0 0 80px 0;
}


/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media screen and (max-width: 1258px) {
	.content_blocks .learn-more-btn {
		font-size: 42px;
		line-height: 54px;
	}
	
	/* Force grid to single column to prevent overflow */
	#site_wrap {
		grid-template-columns: 1fr !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Ensure content containers are properly centered */
	.showcase_desc,
	.feature_desc,
	.featured_middle_desc,
	.content_area,
	.video_wrap,
	.reviews {
		margin-left: auto !important;
		margin-right: auto !important;
	}
	
	/* Fix scroll-container fixed width causing page shift */
	.scroll-container {
		width: 100% !important;
		max-width: 729px;
		margin: 0 auto;
	}
	
	.scroll-holder_s {
		width: 100%;
		max-width: 100%;
		margin: 0 auto;
	}
}

@media screen and (max-width: 1024px) {
	/* CRITICAL: Force grid to respect viewport width */
	#site_wrap {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		/* Override grid columns to prevent overflow */
		grid-template-columns: 1fr !important;
	}
	
	/* Force all sections to 100% width */
	.header,
	.hero,
	.featured_showcase,
	.featured_clear,
	.featured_main,
	.video,
	.photo,
	.featured_middle,
	.middle_clear,
	.featured_bottom,
	.bottom_photo,
	.bottom_contact,
	.footer {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	
	.content_blocks {
		padding: 0 0.3em;
	}
	
	.content_blocks .image-container {
		border: 3px solid #707070;
	}
	
	.content_blocks .image-container img {
		margin: -3px;
		width: calc(100% + 6px);
	}
	
	.content_blocks .learn-more-btn {
		font-size: 38px;
		line-height: 48px;
		bottom: 20px;
	}
	
	/* Fix overflow on tablet screens */
	.featured_showcase,
	.featured_main,
	.featured_middle,
	.featured_bottom {
		overflow-x: hidden;
	}
	
	/* Constrain h1 headlines to prevent overflow */
	.featured_middle_desc h1 {
		max-width: 100%;
		overflow-wrap: break-word;
		word-wrap: break-word;
		padding: 0 0.5em;
		box-sizing: border-box;
	}
	
	/* Fix scroll-container to be responsive instead of fixed width */
	.scroll-container {
		width: 100% !important;
		max-width: 100%;
	}
	
	.scroll-holder,
	.scroll-holder_m,
	.scroll-holder_s {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
	}
	
	.first_card {
		max-width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.content_blocks {
		padding: 0 0.2em;
		max-width: 100%;
	}
	
	.content_blocks .image-container {
		border: 2px solid #707070;
	}
	
	.content_blocks .image-container img {
		margin: -2px;
		width: calc(100% + 4px);
	}
	
	.content_blocks .learn-more-btn {
		bottom: 18px;
		font-size: 32px;
		line-height: 42px;
		padding: .08em .4em .03em .4em;
	}
	
	/* Wider description for "We service all event types" */
	.featured_showcase .showcase_desc p {
		padding-left: 0.5em;
		padding-right: 0.5em;
		max-width: 100%;
	}
	
	/* Fix "So much more..." section line-height and description size */
	.featured_middle_desc h1 {
		line-height: 1.2em !important;
	}
	
	.featured_middle_desc p {
		font-size: 26px !important;
		line-height: 32px !important;
		padding-left: 1.5em;
		padding-right: 1.5em;
	}
}

@media screen and (max-width: 480px) {
	/* Increase viewport height for small phones */
	.featured_showcase,
	.featured_main,
	.featured_middle,
	.featured_bottom,
	.featured_clear,
	.video,
	.photo,
	.bottom_photo,
	.bottom_contact {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	
	.showcase_desc,
	.feature_desc,
	.featured_middle_desc,
	.content_area {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
		/* Increase viewport height for small phones */
	#site_wrap {
		min-height: 900px;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	.content_blocks {
		padding: 0 0.1em;
	}
	
	.content_blocks .learn-more-btn {
		font-size: 28px;
		line-height: 36px;
		bottom: 16px;
	}
	
	.content_blocks .content_title {
		width: 100%;
	}
	
	/* Even wider description for event types on small screens */
	.featured_showcase .showcase_desc p {
		padding-left: 0.3em;
		padding-right: 0.3em;
		font-size: 26px !important;
		line-height: 32px !important;
	}
	
	/* Better spacing for "So much more..." on small screens */
	.featured_middle_desc h1 {
		font-size: 48px !important;
		line-height: 54px !important;
	}
	
	.featured_middle_desc p {
		font-size: 24px !important;
		line-height: 30px !important;
		padding-left: 1em;
		padding-right: 1em;
	}
	.contact_social {
	width:75%	
	}
	.address_quote {
	width:75%	
	}
}

@media screen and (max-width: 390px) {
	.featured_showcase,
	.featured_main,
	.featured_middle,
	.featured_bottom {
		width: 100% !important;
		max-width: 100% !important;
	}
	.content_blocks .learn-more-btn {
		font-size: 24px;
		line-height: 32px;
		padding: .06em .3em .02em .3em;
	}
	
	.featured_showcase .showcase_desc p {
		font-size: 24px !important;
		line-height: 30px !important;
	}
	
	.featured_middle_desc p {
		font-size: 22px !important;
		line-height: 28px !important;
	}
	
	.contact_social {
  	 	width: 80%;
	}
	
	  .address_quote {
    width: 80%;
	}
}

@media screen and (max-width: 375px) {
	.first_card {
		width: 375px;
	}
	
	.card {
    	width: 375px;
	}
	
}