/* =========================================================
   GREENMODELIFE HOMEPAGE
   MODERN MINIMAL / EDITORIAL
   Connected to SCF Site Settings
   ========================================================= */

:root {
	/* =====================================================
	   SCF CONNECTED DESIGN TOKENS
	   ===================================================== */

	--home-bg: var(--color-secondary);
	--home-surface: var(--color-secondary, #ffffff);
	--home-text: var(--color-heading, #1f2a24);
	--home-primary: var(--color-primary, #2e6b4f);
	--home-accent: var(--color-accent, #ff5a00);
	--home-muted: var(--color-body, #68736d);

	--home-border: color-mix(
		in srgb,
		var(--home-text) 12%,
		transparent
	);

	--home-soft: #0000000d;
	);

	/* Typography */
	--home-heading-font: var(--font-heading, "Inter", sans-serif);
	--home-body-font: var(--font-body, "Inter", sans-serif);

	/* Layout */
	--home-container: 1240px;
	--home-content-width: 100%;
	--home-radius: 0px;

	/* Motion */
	--home-transition: 0.3s ease;
}


/* =========================================================
   HOMEPAGE BASE
   ========================================================= */

.homepage {
	width: 100%;
	background: var(--home-bg);
	color: var(--home-text);
	font-family: var(--home-body-font);
	padding: 80px 0 110px;
	overflow: hidden;
}

.homepage *,
.homepage *::before,
.homepage *::after {
	box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.homepage-container {
	width: min(
		calc(100% - 80px),
		var(--home-container)
	);
	margin: 0 auto;
	padding: 0;
}


/* =========================================================
   LINKS
   ========================================================= */

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

.homepage a:hover {
	text-decoration: none;
}


/* =========================================================
   TOP FEATURED AREA
   ========================================================= */

.homepage-hero__grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1.55fr)
		minmax(340px, 0.85fr);
	gap: 52px;
	align-items: start;
}


/* =========================================================
   MAIN FEATURED ARTICLE
   ========================================================= */

.hero-main {
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}


/* =========================================================
   MAIN FEATURED IMAGE
   ========================================================= */

.hero-main__image {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--home-soft);
}

.hero-main__image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		transparent 60%,
		rgba(0, 0, 0, 0.08)
	);
	opacity: 0;
	transition: opacity var(--home-transition);
}

.hero-main__image img {
	width: 100%;
	height: 590px;
	object-fit: cover;
	display: block;
	transition:
		transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.hero-main:hover .hero-main__image img {
	transform: scale(1.025);
}

.hero-main:hover .hero-main__image::after {
	opacity: 1;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.hero-main__content {
	padding: 28px 0 0;
	max-width: 900px;
}

.hero-main .post-meta {
	margin-bottom: 16px;
}

.hero-main span {
    display: block;
    margin: 10px auto !important;
    max-width: 850px;
    font-family: var(--home-heading-font);
    font-size: 29px;
    font-weight: 700;
}

.hero-main h1 a {
	color: var(--home-text);
	transition: color var(--home-transition);
}

.hero-main h1 a:hover {
	color: var(--home-primary);
}

.hero-main__content > p {
    margin: 0;
    margin-bottom: 10px;
    max-width: 720px;
    color: var(--home-muted);
    font-family: var(--home-body-font);
    font-size: 16px;
    line-height: 1.4;
}

.post-author {
    font-size: 14px;
	color: var(--home-muted);
	line-height: 20px;
}

/* =========================================================
   POST META
   ========================================================= */

.homepage .post-meta {
	margin: 0;

	color: var(--home-primary);
	font-family: var(--home-body-font);

	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;

	letter-spacing: 0.12em;
	text-transform: uppercase;
}


/* =========================================================
   RIGHT FEATURED POSTS
   ========================================================= */

.hero-side {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--home-border);
}


/* =========================================================
   SIDE ARTICLE
   ========================================================= */

.hero-side__item {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
	padding: 10px;
    gap: 20px;
    align-items: center;
    min-height: 155px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--home-border);
    border-radius: 0;
    overflow: hidden;
    transition: background-color var(--home-transition),
}

.hero-side__item:hover {
	background: var(--home-soft);
}


/* =========================================================
   SIDE IMAGE
   ========================================================= */

.hero-side__image {
	display: block;
	overflow: hidden;
}

.hero-side__image img {
	width: 145px;
	height: 110px;

	object-fit: cover;
	display: block;

	transition:
		transform 0.5s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.hero-side__item:hover .hero-side__image img {
	transform: scale(1.045);
}


/* =========================================================
   SIDE CONTENT
   ========================================================= */

.hero-side__content {
    padding: 18px 18px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.hero-side__content .post-meta {
	margin-bottom: 8px;
}

.hero-side__content span {
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-family: var(--home-heading-font);
    font-size: 16px;
    line-height: 25px;
    font-weight: 500;
}

.hero-side__content span a {
	color: var(--home-text);
	transition: color var(--home-transition);
}

.hero-side__content span a:hover {
	color: var(--home-primary);
}


/* =========================================================
   BLOG CARD SECTION
   ========================================================= */

.homepage-card-grid {
	display: grid;
	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap: 0 34px;

	margin-top: 90px;
	border-top: 1px solid var(--home-border);
}


/* =========================================================
   BLOG CARD
   ========================================================= */

.homepage-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;

	padding: 34px 0 0;
	border-bottom: 1px solid var(--home-border);

	padding-bottom: 42px;

	transition:
		transform var(--home-transition);
}

.homepage-card:hover {
	transform: translateY(-4px);
}


/* =========================================================
   CARD IMAGE
   ========================================================= */

.homepage-card__image {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--home-soft);
	margin-bottom: 23px;
}

.homepage-card__image img {
	width: 100%;
	height: 250px;

	object-fit: cover;
	display: block;

	transition:
		transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.homepage-card:hover .homepage-card__image img {
	transform: scale(1.035);
}


/* =========================================================
   CARD META
   ========================================================= */

.homepage-card > .post-meta {
	margin: 0 0 9px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.homepage-card span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
    font-family: var(--home-heading-font);
    font-size: 23px;
    font-weight: 550;
    line-height: 1.4;
}

.homepage-card span a {
	color: var(--home-text);
	transition: color var(--home-transition);
}

.homepage-card span a:hover {
	color: var(--home-primary);
}


/* =========================================================
   CARD DESCRIPTION
   ========================================================= */

.homepage-card > p {
	margin: 0;

	max-width: 95%;

	color: var(--home-muted);
	font-family: var(--home-body-font);

	font-size: 15px;
	line-height: 1.7;
}


/* =========================================================
   GO TO POSTS BUTTON
   ========================================================= */

.homepage-posts-button {
	display: flex;
	justify-content: center;
	margin-top: 58px;
}

.homepage-posts-button a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 15px 23px;
	background: transparent;
	border: 1px solid var(--home-text);
	border-radius: 999px;
	color: var(--home-text);
	font-family: var(--home-body-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	transition:
		background-color var(--home-transition),
		color var(--home-transition),
		border-color var(--home-transition),
		transform var(--home-transition);
}

.homepage-posts-button a:hover {
	background: var(--color-accent, #ff5a00);;
	border-color: var(--color-accent, #ff5a00);;
	color: var(--color-secondary, #ffffff);;
	transform: translateY(-2px);
}

.homepage-posts-button span {
	font-size: 17px;
	line-height: 1;
	transition: transform var(--home-transition);
}

.homepage-posts-button a:hover span {
	transform: translateX(3px);
}


/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

	.homepage {
		padding: 65px 0 90px;
	}

	.homepage-container {
		width: min(
			calc(100% - 56px),
			var(--home-container)
		);
	}

	.homepage-hero__grid {
		grid-template-columns:
			minmax(0, 1.35fr)
			minmax(300px, 0.8fr);

		gap: 36px;
	}

	.hero-main__image img {
		height: 510px;
	}

	.hero-main h1 {
		font-size: clamp(40px, 5vw, 58px);
	}

	.hero-side__item {
		grid-template-columns: 120px minmax(0, 1fr);
		min-height: 140px;
	}

	.hero-side__image img {
		width: 120px;
		height: 95px;
	}

	.hero-side__content h2 {
		font-size: 21px;
	}

	.homepage-card-grid {
		gap: 0 24px;
		margin-top: 75px;
	}

	.homepage-card__image img {
		height: 220px;
	}

	.homepage-card h2 {
		font-size: 25px;
	}
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

	.homepage {
		padding: 55px 0 80px;
	}

	.homepage-container {
		width: min(
			calc(100% - 48px),
			var(--home-container)
		);
	}

	.homepage-hero__grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.hero-main__image img {
		height: 500px;
	}

	.hero-main__content {
		padding-top: 25px;
	}

	.hero-main h1 {
		font-size: clamp(42px, 7vw, 60px);
		max-width: 850px;
	}

	.hero-side {
		display: grid;
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		border-top: 1px solid var(--home-border);
	}

	.hero-side__item {
		min-height: 150px;
		padding: 20px 0;

		border-right: 1px solid var(--home-border);
	}

	.hero-side__item:nth-child(2n) {
		border-right: 0;
		padding-left: 20px;
	}

	.hero-side__item:nth-child(n + 3) {
		border-bottom: 1px solid var(--home-border);
	}

	.hero-side__item:hover {
		padding-left: 10px;
	}

	.hero-side__item:nth-child(2n):hover {
		padding-left: 30px;
	}

	.hero-side__image img {
		width: 125px;
		height: 105px;
	}

	.homepage-card-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap: 0 28px;
	}

	.homepage-card:nth-child(3n) {
		border-bottom: 1px solid var(--home-border);
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

	.homepage {
		padding: 40px 0 60px;
	}

	.homepage-container {
		width: calc(100% - 36px);
		padding: 0;
	}

	/* -----------------------------------------------
	   Hero
	   ----------------------------------------------- */

	.homepage-hero__grid {
		gap: 38px;
	}

	.hero-main__image img {
		height: 300px;
	}

	.hero-main__content {
		padding-top: 20px;
	}

	.hero-main .post-meta {
		margin-bottom: 12px;
	}

	.hero-main h1 {
		margin-bottom: 15px;

		font-size: clamp(34px, 10vw, 44px);
		line-height: 0.99;
		letter-spacing: -0.04em;
	}

	.hero-main__content > p {
		font-size: 15px;
		line-height: 1.65;
	}


	/* -----------------------------------------------
	   Side Articles
	   ----------------------------------------------- */

	.hero-side {
		display: flex;
		flex-direction: column;

		border-top: 1px solid var(--home-border);
	}

	.hero-side__item,
	.hero-side__item:nth-child(2n) {
		display: grid;

		grid-template-columns:
			100px minmax(0, 1fr);

		gap: 16px;

		min-height: 110px;

		padding: 15px 0;

		border-right: 0;
		border-bottom: 1px solid var(--home-border);
	}

	.hero-side__item:hover,
	.hero-side__item:nth-child(2n):hover {
		padding-left: 6px;
	}

	.hero-side__image img {
		width: 100px;
		height: 80px;
	}

	.hero-side__content {
		padding: 0;
	}

	.hero-side__content .post-meta {
		margin-bottom: 6px;
		font-size: 10px;
	}

	.hero-side__content h2 {
		font-size: 19px;
		line-height: 1.1;
	}


	/* -----------------------------------------------
	   Blog Grid
	   ----------------------------------------------- */

	.homepage-card-grid {
		grid-template-columns: 1fr;

		gap: 0;

		margin-top: 55px;
	}

	.homepage-card {
		padding: 28px 0 34px;
		border-bottom: 1px solid var(--home-border);
	}

	.homepage-card__image {
		margin-bottom: 19px;
	}

	.homepage-card__image img {
		height: 230px;
	}

	.homepage-card > .post-meta {
		margin-bottom: 8px;
	}

	.homepage-card h2 {
		margin-bottom: 10px;

		font-size: 24px;
		line-height: 1.1;
	}

	.homepage-card > p {
		max-width: 100%;
		font-size: 14px;
		line-height: 1.65;
	}


	/* -----------------------------------------------
	   Button
	   ----------------------------------------------- */

	.homepage-posts-button {
		margin-top: 42px;
	}

	.homepage-posts-button a {
		width: 100%;
		max-width: 260px;
		padding: 14px 20px;
	}
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

	.homepage {
		padding-top: 32px;
	}

	.homepage-container {
		width: calc(100% - 28px);
	}

	.hero-main__image img {
		height: 255px;
	}

	.hero-main h1 {
		font-size: 34px;
	}

	.hero-main__content > p {
		font-size: 14px;
	}

	.hero-side__item,
	.hero-side__item:nth-child(2n) {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 14px;
	}

	.hero-side__image img {
		width: 88px;
		height: 72px;
	}

	.hero-side__content h2 {
		font-size: 18px;
	}

	.homepage-card__image img {
		height: 210px;
	}

	.homepage-card h2 {
		font-size: 22px;
	}
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.homepage *,
	.homepage *::before,
	.homepage *::after {
		transition: none !important;
		animation: none !important;
	}

	.hero-main:hover .hero-main__image img,
	.hero-side__item:hover .hero-side__image img,
	.homepage-card:hover .homepage-card__image img,
	.homepage-card:hover {
		transform: none;
	}
}