/**
 * Documents Page Styles
 *
 * @package Plastpro
 * @since 1.0.0
 */

/* Documents template: no background on content wrapper */
.page-template-template-documents .page-content-wrapper-custom {
	background: none;
}

/* Hero Section */
.documents-hero {
	position: relative;
	width: 100%;
	min-height: var(--plastpro-hero-min-height);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 0;
}

.documents-hero .hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.documents-hero .hero-overlay {
	position: relative;
	width: 100%;
	height: 100%;
	background: rgba(29, 37, 45, 0.3); /* #1D252D at 30% opacity */
	z-index: 1;
}

.documents-hero .hero-text-wrapper {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 6rem;
}

.documents-hero .hero-text-content {
	position: relative;
	z-index: 1;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.documents-hero .hero-text-content .hero-title {
	font-family: 'Gilda Display', serif !important;
	font-size: var(--font-size-display) !important;
	font-weight: 400 !important;
	line-height: 70px !important;
	margin: 0 !important;
	color: #FFFFFF !important;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Documents Page Container */
.documents-page {
	padding: 0;
	background: #F5F5F5;
}

/* Featured Description Section (at the top) */
.featured-description-section {
	padding: 0;
}

.featured-description-content {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #1D252D;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding-bottom: 3rem;
}

.featured-description-content p {
	margin: 0 0 1rem 0;
}

.featured-description-content p:last-child {
	margin-bottom: 0;
}

/* Featured Document Section – full-width white background wrapper */
.featured-document-section {
	width: 100%;
	background: #fff;
}

.featured-document-section .site-container.featured-document-container {
	max-width: var(--site-container-max-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: 120px;
	padding-right: 120px;
	box-sizing: border-box;
}

.featured-document {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 3rem;
	padding: 3rem 0;
	align-items: start;
}

.featured-document-image {
	width: 100%;
	height: auto;
}

.featured-document-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.featured-document-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.featured-document-type {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-xs);
	font-weight: 700;
	color: #E87722;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.featured-document-title {
	font-family: 'Gilda Display', serif;
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.3;
	color: #1D252D;
	margin: 0;
}

.featured-document-description {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #1D252D;
}

.featured-document-description p {
	margin: 0 0 1rem 0;
}

.featured-document-description p:last-child {
	margin-bottom: 0;
}

.featured-document-download,
.featured-document-learn-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 700;
	line-height: 22px;
	color: #E87722;
	text-decoration: none;
	margin-top: auto;
	transition: color 0.3s ease;
	width: fit-content;
	text-transform: uppercase;
}

.featured-document-download:hover,
.featured-document-learn-more:hover {
	color: #D66A1F;
	text-decoration: none;
}

.featured-document-download svg,
.featured-document-learn-more svg {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Documents template: .site-main keeps overflow-x: clip from global style (no override) so full-bleed doesn't cause horizontal scroll; sticky tabs still work with viewport as scroll container */

/* Site container in tabs section must not clip sticky */
.documents-tabs-section .site-container {
	overflow-x: visible;
}

/* Documents Tabs Section – override .page-content-wrapper-custom > * max-width so section can be full width */
.page-content-wrapper-custom > .documents-tabs-section {
	max-width: none !important;
	width: 100%;
}

.documents-tabs-section {
	padding: 3rem 0;
	background: #FFFFFF;
	width: 100%;
	scroll-margin-top: calc(var(--masthead-h, 132px));
}

.documents-tabs-section .site-container {
	max-width: var(--site-container-max-wide);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

.documents-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 2rem;
	padding-top: 0.75rem;
	padding-bottom: 1rem;
	align-items: flex-start;
	background: #fff;
	position: -webkit-sticky;
	position: sticky;
	top: calc(var(--masthead-h, 132px));
	z-index: 100;
	scroll-margin-top: calc(var(--masthead-h, 132px));
}

.documents-tab-button {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #7C878E;
	text-decoration: none;
	padding: 0.5rem 0;
	position: relative;
	transition: color 0.2s ease;
	background: transparent;
	border: none;
	cursor: pointer;
	line-height: 1.5;
}

.documents-tab-button:hover {
	color: #1D252D;
}

.documents-tab-button.active {
	color: var(--plastpro-orange, #E87722);
}

.documents-tab-button.active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1rem;
	height: 2px;
	background-color: var(--plastpro-orange, #E87722);
}

.documents-tabs-content {
	position: relative;
}

.documents-tab-pane {
	display: none;
}

.documents-tab-pane.active {
	display: block;
}

/* Documents Grid */
.documents-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

/* Document Card – orange line and gray background on hover (like blog cards) */
.document-card {
	position: relative;
	background: #FFFFFF;
	border: 1px solid #7C878E;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
	display: flex;
	flex-direction: row;
	height: 320px;
}

.document-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	background-color: var(--plastpro-orange, #E87722);
	width: 0;
	transition: width 0.3s ease;
	z-index: 2;
}

a.document-card {
	text-decoration: none;
	color: inherit;
}

a.document-card:hover {
	transform: translateY(-4px);
	box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.15);
	background-color: var(--plastpro-gray-6, #F5F5F5);
}

a.document-card:hover::after {
	width: 100%;
}

.document-card-image {
	width: 40%;
	height: 100%;
	overflow: hidden;
	background: #F5F5F5;
	flex-shrink: 0;
	position: relative;
}

.document-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.document-card:hover .document-card-image img {
	transform: scale(1.05);
}

.document-card-content {
	padding: 30px 44px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
	justify-content: flex-start;
	position: relative;
}

.document-card-type {
	display: none;
}

.document-card-title {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-large);
	font-weight: 700;
	line-height: 19px;
	color: #1D252D;
	margin: 0 0 20px 0;
	white-space: nowrap;
}

.document-card-description {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 400;
	line-height: 18px;
	color: #1D252D;
	margin: 0 0 20px 0;
	flex: 1;
}

.document-card-download {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 700;
	line-height: 22px;
	color: #E87722;
	text-decoration: none;
	margin-top: auto;
	transition: color 0.3s ease;
	width: fit-content;
	text-transform: uppercase;
}

.document-card-download:hover {
	color: #D66A1F;
	text-decoration: none;
}

.document-card-download svg {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.document-card-learn-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-small);
	font-weight: 700;
	line-height: 22px;
	color: #E87722;
	text-decoration: none;
	margin-top: auto;
	transition: color 0.3s ease;
	width: fit-content;
	text-transform: uppercase;
}

.document-card-learn-more:hover {
	color: #D66A1F;
	text-decoration: none;
}

.document-card-learn-more .document-card-learn-more__arrow,
.document-card-learn-more svg {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.documents-empty {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #7C878E;
	text-align: center;
	padding: 3rem 2rem;
}

/* Page Content Section */
.documents-page-content {
	font-family: 'Montserrat', sans-serif;
	font-size: var(--font-size-h6);
	font-weight: 400;
	line-height: 24px;
	color: #1D252D;
	padding: 3rem 0;
}

.documents-page-content p {
	margin: 0 0 1rem 0;
}

.documents-page-content p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.featured-description-section {
		padding: 0;
	}
	
	.featured-description-content {
		padding: 0 2rem;
	}
	
	.featured-document {
		grid-template-columns: 300px 1fr;
		gap: 2rem;
		padding: 2rem 0;
	}
	
	.documents-grid {
		grid-template-columns: 1fr;
	}
	
	.document-card {
		height: auto;
		min-height: 320px;
	}
	
	.document-card-content {
		padding: 30px 24px;
	}
}

@media (max-width: 768px) {
	.documents-hero .hero-text-content .hero-title {
		font-size: var(--font-size-display) !important;
		line-height: 52px !important;
	}
	
	.featured-description-section {
		padding: 0;
	}
	
	.featured-description-content {
		padding: 0 1.5rem;
		font-size: var(--font-size-small);
	}
	
	.featured-document {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 2rem 0;
	}
	
	.featured-document-image {
		max-width: 300px;
		margin: 0 auto;
	}
	
	.featured-document-title {
		font-size: 1.75rem;
		line-height: 1.3;
	}
	
	.documents-tabs-nav {
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	
	.documents-tab-button {
		padding: 0.75rem 0;
	}
	
	.document-card {
		flex-direction: column;
		height: auto;
	}
	
	.document-card-image {
		width: 100%;
		height: 200px;
	}
	
	.document-card-content {
		padding: 24px;
	}
	
	.documents-page-content {
		padding: 2rem 0;
	}
}

