/* ============================================
   MGB - Mina de Casa Branca
   Custom Overrides & New Components
   Loaded AFTER main.css
   ============================================ */

/* ------------------------------------------
   WhatsApp Floating Button
   ------------------------------------------ */
.whatsapp-float {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background-color: #25D366;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: all 0.3s ease;
	text-decoration: none;
}

.whatsapp-float:hover {
	background-color: #128C7E;
	color: #fff;
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
	line-height: 1;
}

@keyframes whatsapp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
	70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
	animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
	animation: none;
}

@media (max-width: 767px) {
	.whatsapp-float {
		bottom: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
		font-size: 24px;
	}
}

/* ------------------------------------------
   Logo adjustments (PNG instead of SVG)
   ------------------------------------------ */
.logo-wrap img,
.logo-wrap-2 img,
.off-canvas-logo img,
.footer-logo img {
	max-height: 131px;
	max-width: 264px;
	width: auto;
}

.logo-wrap-2 img {
	max-height: 75px;
	max-width: 260px;
}

/* ------------------------------------------
   Benefits list fix (multi-line overlap)
   ------------------------------------------ */
.benefits ul {
	gap: 24px;
}
.benefits ul li {
	align-items: flex-start;
	line-height: 1.8;
	padding-top: 4px;
	padding-bottom: 4px;
}
.benefits ul li::before,
.benefits ul li::after {
	top: 10px;
	transform: none;
}
.benefits ul li::after {
	top: 17px;
}

/* ------------------------------------------
   Footer contact icons - round style
   ------------------------------------------ */
.get-in-touch .footer-address .icon,
.get-in-touch .email .icon,
.get-in-touch .phone .icon {
	width: 54px;
	height: 54px;
	min-width: 54px;
	background: rgba(255, 255, 255, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
}
.get-in-touch .footer-address .icon i,
.get-in-touch .email .icon i,
.get-in-touch .phone .icon i {
	font-size: 22px;
}

/* ------------------------------------------
   Barragem Page - Dam Info Cards
   ------------------------------------------ */
.dam-card {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
	border-left: 5px solid var(--theme-color);
	margin-bottom: 30px;
	transition: all 0.3s ease;
}

.dam-card:hover {
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.dam-card .dam-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--title-color);
	margin-bottom: 20px;
}

.dam-card .dam-status {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
}

.dam-card .dam-status.inactive {
	background: rgba(133, 191, 24, 0.15);
	color: var(--theme-color);
}

.dam-card .dam-specs {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dam-card .dam-specs li {
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dam-card .dam-specs li:last-child {
	border-bottom: none;
}

.dam-card .dam-specs li .label {
	color: var(--body-color);
	font-weight: 500;
}

.dam-card .dam-specs li .value {
	color: var(--title-color);
	font-weight: 700;
}

.paebm-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	background: var(--theme-color);
	color: #fff;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-top: 20px;
}

.paebm-download-btn:hover {
	background: var(--theme-color-3);
	color: #fff;
	transform: translateY(-2px);
}

.paebm-download-btn i {
	font-size: 20px;
}

/* ------------------------------------------
   Biblioteca Tecnica - Download Cards
   ------------------------------------------ */
.download-card {
	background: #fff;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.download-card:hover {
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.download-card .file-icon {
	width: 55px;
	height: 55px;
	border-radius: 10px;
	background: rgba(133, 191, 24, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.download-card .file-icon i {
	font-size: 24px;
	color: var(--theme-color);
}

.download-card .file-info {
	flex: 1;
}

.download-card .file-info h5 {
	font-size: 16px;
	font-weight: 600;
	color: var(--title-color);
	margin-bottom: 5px;
}

.download-card .file-info p {
	font-size: 14px;
	color: var(--body-color);
	margin: 0;
}

.download-card .file-download {
	flex-shrink: 0;
}

.download-card .file-download a {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--theme-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.3s ease;
}

.download-card .file-download a:hover {
	background: var(--theme-color-3);
}

/* ------------------------------------------
   Gallery Page - Filter & Grid
   ------------------------------------------ */
.gallery-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
	justify-content: center;
}

.gallery-filter .filter-btn {
	padding: 8px 24px;
	border: 2px solid #e8e8e8;
	border-radius: 50px;
	background: transparent;
	color: var(--title-color);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.gallery-filter .filter-btn:hover,
.gallery-filter .filter-btn.active {
	background: var(--theme-color);
	border-color: var(--theme-color);
	color: #fff;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gallery-item {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.gallery-item img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item .gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 69, 64, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-item .gallery-overlay i {
	font-size: 30px;
	color: #fff;
}

@media (max-width: 991px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------
   Project Timeline (O Projeto page)
   ------------------------------------------ */
.project-timeline {
	position: relative;
	padding: 40px 0;
}

.project-timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--theme-color);
	transform: translateX(-50%);
}

.timeline-item {
	position: relative;
	width: 50%;
	padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
	margin-left: 0;
	text-align: right;
}

.timeline-item:nth-child(even) {
	margin-left: 50%;
}

.timeline-item::before {
	content: '';
	position: absolute;
	top: 30px;
	width: 20px;
	height: 20px;
	background: var(--theme-color);
	border: 4px solid #fff;
	border-radius: 50%;
	z-index: 1;
	box-shadow: 0 0 0 4px var(--theme-color);
}

.timeline-item:nth-child(odd)::before {
	right: -10px;
}

.timeline-item:nth-child(even)::before {
	left: -10px;
}

.timeline-content {
	background: #fff;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.timeline-content .year {
	display: inline-block;
	padding: 4px 14px;
	background: var(--theme-color);
	color: #fff;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
}

.timeline-content h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--title-color);
	margin-bottom: 8px;
}

.timeline-content p {
	font-size: 14px;
	color: var(--body-color);
	margin: 0;
}

@media (max-width: 991px) {
	.project-timeline::before {
		left: 20px;
	}

	.timeline-item {
		width: 100%;
		padding-left: 60px;
		padding-right: 20px;
		text-align: left;
	}

	.timeline-item:nth-child(even) {
		margin-left: 0;
	}

	.timeline-item::before,
	.timeline-item:nth-child(odd)::before,
	.timeline-item:nth-child(even)::before {
		left: 10px;
	}
}

/* ------------------------------------------
   Progress Stage Cards (O Projeto)
   ------------------------------------------ */
.stage-card {
	background: #fff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
	text-align: center;
	transition: all 0.3s ease;
	height: 100%;
}

.stage-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stage-card .stage-number {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--theme-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	margin: 0 auto 20px;
}

.stage-card h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--title-color);
	margin-bottom: 12px;
}

.stage-card p {
	font-size: 14px;
	color: var(--body-color);
}

/* ------------------------------------------
   Legal Reference Box
   ------------------------------------------ */
.legal-box {
	background: linear-gradient(135deg, var(--theme-color-3) 0%, #00332e 100%);
	border-radius: 12px;
	padding: 30px;
	color: #fff;
}

.legal-box h5 {
	color: var(--theme-color);
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 15px;
}

.legal-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.legal-box ul li {
	padding: 8px 0;
	padding-left: 25px;
	position: relative;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.legal-box ul li::before {
	content: '\f00c';
	font-family: 'Font Awesome 6 Pro';
	position: absolute;
	left: 0;
	color: var(--theme-color);
	font-weight: 900;
}

/* ------------------------------------------
   Placeholder content markers
   ------------------------------------------ */
.placeholder-content {
	background: repeating-linear-gradient(
		45deg,
		#fafafa,
		#fafafa 10px,
		#f5f5f5 10px,
		#f5f5f5 20px
	);
	border: 2px dashed #ddd;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	color: #999;
}

.placeholder-content p {
	margin: 0;
	font-style: italic;
}

/* ------------------------------------------
   Cookie Consent Banner (LGPD)
   ------------------------------------------ */
.cookie-consent {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	width: calc(100% - 40px);
	max-width: 960px;
	background: var(--theme-color-3);
	color: rgba(255, 255, 255, 0.9);
	padding: 0;
	z-index: 99999;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cookie-consent.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	visibility: visible;
}
.cookie-consent-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 28px;
}
.cookie-consent-icon {
	width: 52px;
	height: 52px;
	min-width: 52px;
	background: rgba(133, 191, 24, 0.15);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--theme-color);
}
.cookie-consent-text {
	flex: 1;
}
.cookie-consent-text strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
}
.cookie-consent-text p {
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}
.cookie-consent-text a {
	color: var(--theme-shade-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.cookie-consent-text a:hover {
	color: var(--theme-color);
}
.cookie-consent-buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}
.cookie-consent-buttons .btn-accept {
	background: var(--theme-color);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}
.cookie-consent-buttons .btn-accept:hover {
	background: var(--theme-shade-color);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(133, 191, 24, 0.4);
}
.cookie-consent-buttons .btn-decline {
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	padding: 12px 28px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}
.cookie-consent-buttons .btn-decline:hover {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
	transform: translateY(-1px);
}
@media (max-width: 767px) {
	.cookie-consent {
		bottom: 12px;
		width: calc(100% - 24px);
		border-radius: 14px;
	}
	.cookie-consent-inner {
		flex-direction: column;
		text-align: center;
		gap: 16px;
		padding: 20px;
	}
	.cookie-consent-icon {
		margin: 0 auto;
	}
	.cookie-consent-buttons {
		width: 100%;
		justify-content: center;
	}
	.cookie-consent-buttons .btn-accept,
	.cookie-consent-buttons .btn-decline {
		flex: 1;
		padding: 12px 16px;
	}
}
/* Ajustar WhatsApp button quando cookie banner visível */
.cookie-consent.show ~ .whatsapp-float {
	bottom: 110px;
	transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
