/**
 * Elementor Custom Widgets Default Stylesheet
 *
 * Provides base styling for Frisk Oslofjord Elementor widgets.
 * Allows Elementor scoped control selectors (e.g. {{WRAPPER}} .class) to override defaults.
 *
 * @package Frisk_Project_Manager
 */

/* ==========================================================================
   Sea Grass Hero Section (.sgh-widget) - Underwater Theme UI
   ========================================================================== */

.sgh-widget {
	position: relative;
	background-color: #28616A;
	min-height: 450px;
	padding: 60px 20px 80px 20px;
	font-family: "Barlow", sans-serif;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	overflow: hidden;
}

.sgh-widget__background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.sgh-widget__water {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 25%;
	background-color: rgba(255, 255, 255, 0.08);
	z-index: 2;
	pointer-events: none;
}

.sgh-widget__grass {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 180px;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.sgh-widget__grass-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.sgh-widget__grass-blade {
	transform-origin: bottom center;
	transition: transform 0.3s ease;
}

.sgh-widget__grass-blade--primary {
	fill: #32724F;
	stroke: #32724F;
	stroke-width: 0.5px;
}

.sgh-widget__grass-blade--secondary {
	fill: #24593C;
	stroke: #24593C;
	stroke-width: 0.5px;
}

@keyframes sgh-sway-anim {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(2.5deg) skewX(2deg);
	}
	100% {
		transform: rotate(-2.5deg) skewX(-2deg);
	}
}

.sgh-widget__grass--animated .sgh-widget__grass-blade {
	animation: sgh-sway-anim 6s ease-in-out infinite alternate;
}

.sgh-widget__grass--animated .sgh-blade-1 { animation-delay: 0s; animation-duration: 5.5s; }
.sgh-widget__grass--animated .sgh-blade-2 { animation-delay: 0.4s; animation-duration: 6.2s; }
.sgh-widget__grass--animated .sgh-blade-3 { animation-delay: 0.8s; animation-duration: 5.8s; }
.sgh-widget__grass--animated .sgh-blade-4 { animation-delay: 1.2s; animation-duration: 6.5s; }
.sgh-widget__grass--animated .sgh-blade-5 { animation-delay: 0.3s; animation-duration: 5.2s; }
.sgh-widget__grass--animated .sgh-blade-6 { animation-delay: 0.7s; animation-duration: 6.0s; }
.sgh-widget__grass--animated .sgh-blade-7 { animation-delay: 1.1s; animation-duration: 5.6s; }
.sgh-widget__grass--animated .sgh-blade-8 { animation-delay: 0.5s; animation-duration: 6.3s; }
.sgh-widget__grass--animated .sgh-blade-9 { animation-delay: 0.9s; animation-duration: 5.9s; }
.sgh-widget__grass--animated .sgh-blade-10 { animation-delay: 1.4s; animation-duration: 6.1s; }

@media (prefers-reduced-motion: reduce) {
	.sgh-widget__grass--animated .sgh-widget__grass-blade {
		animation: none !important;
	}
}

.sgh-widget__content {
	position: relative;
	z-index: 4;
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sgh-widget__badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.sgh-widget__badge {
	display: inline-block;
	background-color: rgba(255, 255, 255, 0.95);
	color: #28616A;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 18px;
	border-radius: 100px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sgh-widget__badge--secondary {
	background-color: rgba(255, 255, 255, 0.85);
}

.sgh-widget__badge--link {
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sgh-widget__badge--link:hover {
	background-color: #ffffff;
	transform: translateY(-1px);
}

.sgh-widget__heading {
	color: #ffffff;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 18px 0;
}

.sgh-widget__description {
	color: #E2ECE9;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	max-width: 680px;
}

.sgh-widget__description p {
	margin: 0 0 1em 0;
}

.sgh-widget__description p:last-child {
	margin-bottom: 0;
}

.sgh-widget__seabed {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #D6C8B4;
	z-index: 2;
	pointer-events: none;
	border-top-left-radius: 50% 12px;
	border-top-right-radius: 50% 12px;
}

@media (max-width: 768px) {
	.sgh-widget {
		padding: 40px 16px 70px 16px;
		min-height: 360px;
	}

	.sgh-widget__heading {
		font-size: 30px;
	}

	.sgh-widget__description {
		font-size: 14px;
	}

	.sgh-widget__grass {
		height: 120px;
	}
}

/* ==========================================================================
   Project Page Hero Section (.fo-project-hero-container)
   ========================================================================== */

.fo-project-hero-container {
	background-color: transparent;
	border-radius: 16px;
	padding: 0px;
	font-family: "Barlow", sans-serif;
	box-sizing: border-box;
}

.fo-project-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.fo-hero-left-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fo-hero-badge-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.fo-hero-badge-dot {
	width: 10px;
	height: 10px;
	background-color: #008783;
	border-radius: 50%;
	display: inline-block;
}

.fo-hero-eyebrow {
	color: #008783;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.fo-hero-title {
	color: #008783;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 20px 0;
}

.fo-hero-desc {
	font-size: 16px;
	line-height: 1.6;
	color: #1a202c;
	margin-bottom: 30px;
	max-width: 520px;
}

.fo-hero-desc p {
	margin: 0 0 1em 0;
}

.fo-hero-desc p:last-child {
	margin-bottom: 0;
}

.fo-hero-btn-wrap {
	display: block;
}

.fo-hero-btn {
	display: inline-block;
	background-color: #C3DF58;
	color: #00332c;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fo-hero-btn:hover {
	background-color: #b2d244;
	color: #00332c;
}

.fo-hero-right-col {
	width: 100%;
}

.fo-hero-img-wrap {
	width: 100%;
	height: 380px;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.fo-hero-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobile Responsive Layout for Hero Widget */
@media (max-width: 768px) {
	.fo-project-hero-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.fo-project-hero-container {
		padding: 30px 20px;
	}

	.fo-hero-title {
		font-size: 32px;
	}

	.fo-hero-img-wrap {
		height: 260px;
	}
}

/* ==========================================================================
   Restoration About Section (.fo-restoration-about-widget)
   ========================================================================== */

.fo-restoration-about-widget {
	font-family: "Barlow", sans-serif;
	margin-bottom: 40px;
	box-sizing: border-box;
}

.fo-about-header-wrap {
	margin-bottom: 20px;
}

.fo-about-title {
	color: #008783;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 10px 0;
	line-height: 1.2;
}

.fo-about-title-accent {
	width: 50px;
	height: 4px;
	background-color: #C3DF58;
	border-radius: 2px;
}

.fo-about-desc {
	font-size: 16px;
	line-height: 1.6;
	color: #2d3748;
	margin-bottom: 35px;
	max-width: 900px;
}

.fo-about-desc p {
	margin: 0 0 1em 0;
}

.fo-about-desc p:last-child {
	margin-bottom: 0;
}

.fo-steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.fo-step-card {
	background-color: #EBF6F5;
	border-radius: 12px;
	padding: 24px 20px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	box-sizing: border-box;
}

.fo-step-number {
	width: 48px;
	height: 48px;
	min-width: 48px;
	background-color: #ffffff;
	color: #008783;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fo-step-content {
	flex: 1;
}

.fo-step-title {
	color: #008783;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.fo-step-subtitle {
	color: #4a5568;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
}

@media (max-width: 768px) {
	.fo-steps-grid {
		grid-template-columns: 1fr;
	}

	.fo-about-title {
		font-size: 26px;
	}
}

/* ==========================================================================
   Blog Section (.fo-blog-section-container) - Matching image.png UI
   ========================================================================== */

.fo-blog-section-container {
	background-color: #1D4844;
	padding: 60px 50px;
	font-family: "Barlow", sans-serif;
	box-sizing: border-box;
}

.fo-blog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 40px;
}

.fo-blog-title {
	color: #ffffff;
	font-size: 32px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.fo-blog-pills {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.fo-blog-pill {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 20px;
	padding: 8px 20px;
	font-family: "Barlow", sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	outline: none;
}

.fo-blog-pill:hover {
	border-color: #ffffff;
}

.fo-blog-pill.active {
	background-color: #ffffff;
	color: #1D4844;
	border-color: #ffffff;
}

.fo-blog-dropdown {
	display: none;
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	padding: 10px 16px;
	font-family: "Barlow", sans-serif;
	font-size: 14px;
	font-weight: 600;
	width: 100%;
	max-width: 100%;
	outline: none;
	cursor: pointer;
	backdrop-filter: blur(4px);
}

.fo-blog-dropdown option {
	background-color: #1D4844;
	color: #ffffff;
}

.fo-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.fo-blog-card {
	display: flex;
	flex-direction: column;
}

.fo-blog-card-img-link {
	display: block;
	text-decoration: none;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: 8px;
}

.fo-blog-card-img {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.fo-blog-card-img-link:hover .fo-blog-card-img {
	transform: scale(1.04);
}

.fo-blog-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fo-blog-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.fo-blog-card-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fo-blog-card-title a:hover {
	color: #C3DF58;
}

.fo-blog-card-excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #E0ECEB;
	margin: 0 0 14px 0;
	flex-grow: 1;
}

.fo-blog-card-link {
	font-size: 14px;
	font-weight: 700;
	color: #C3DF58;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.2s ease, transform 0.2s ease;
}

.fo-blog-card-link:hover {
	color: #ffffff;
	transform: translateX(3px);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
	.fo-blog-pills {
		display: none !important;
	}

	.fo-blog-dropdown {
		display: block !important;
	}

	.fo-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.fo-blog-section-container {
		padding: 40px 20px;
	}

	.fo-blog-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fo-blog-grid {
		grid-template-columns: 1fr;
	}

	.fo-blog-title {
		font-size: 26px;
	}
}
