/*
Theme Name: Cristine's Custom Theme 2025 

/**
 * Table of Contents
 *
 * 1.0 - Normalize
 * 2.0 - Root Settings 

 */

 * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
 }


/**
 * 2.0 - Root Settings
 *
 * Setting up the root colors, fonts, sizes for easier maintenance later on. Gee thanks me from the past.
 */

 :root {
	--purple: rgb(105,179,233);
	--purple-light: #EBF0FF;
	--accent: rgba(45,153,226,0.7553615196078431);
	--grey: #394155;
	--off-white: #FFF;
	--off-black: #141116;
	--font-accent: "Irish Grover", serif; /* 400 only */
	--font-title: "Zen Loop", serif; /* 400 only */
	--font-text: "Barlow", serif; /* 100-900 */
	--font-data: "Goudy Bookletter 1911", serif; /* 400 only */
  }
  
body {
	width: 100%;
	background-color: var(--off-white);
}

header {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 2;
}

body.scroll-block {
	overflow-y: hidden;
	height: 100vh;
}

.site-header-main {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--off-white);
	width: 100%;
	backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
	position: relative;
}

.site-header-main::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0.5rem;
	background-color: var(--purple);
}

.country .site-header-main::after {
	background-color: #AFE1AF;
}

.site-header-menu {
	width: 100%;
	max-width: 1400px;
	color: var(--off-black);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--grey);
}

.site-data {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.2rem;
}

.site-title {
	font-size: 2rem;
	font-family: var(--font-text);
  	font-weight: 800;
	color: var(--accent);
	transition: all 0.3s ease;
}

.country .site-title {
	color: #50C878;
}

.site-title:hover {
	color: var(--grey);
}

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

.site-subtitle {
	font-size: 1rem;
	font-family: var(--font-text);
	font-size: 0.7rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--grey);
	font-weight: 600;
}

.site-header-menu nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2rem;
}

.site-header-menu nav ul li {
	text-transform: uppercase;
	font-weight: 600;
	font-size: 1rem;
	font-family: var(--font-text);
	color: var(--grey);
	transition: 0.2s color ease;
	letter-spacing: 1.5px;
}

.site-header-menu nav ul li:hover {
	color: var(--accent);
}

.site-header-menu nav ul a {
	text-decoration: none;
	cursor: pointer;
	color: inherit;
}

.site-content {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.home-container-flex {
	min-height: 80vh;
	width: 100%;
	position: relative;
	display: flex;
}

.home-sticky-section {
	position: sticky;
	top: 100px;
	right: 0;
	flex-basis: 30%;
	height: 80vh;
}

.sticky-title {
	padding-block: 1rem;
	text-align: center;
	width: 100%;
	font-family: var(--font-title);
	font-size: 2rem;
	text-transform: uppercase;
}

.sticky-img-container {
	width: 100%;
	padding: 1rem;
	position: relative;
}

.sticky-img-container img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.sticky-label {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 0.5rem 0.8rem;
	background-color: var(--accent);
	backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
	font-family: var(--font-text);
	font-size: 1rem;
	color: var(--off-white);
	text-align: center;
	letter-spacing: 2px;
	font-weight: 600;
}

.sticky-text {
	padding: 1rem;
	font-family: var(--font-text);
	font-size: 1rem;
}

.sticky-text ul {
	display: flex;
	flex-direction: column;
}

.sticky-text ul li {
	list-style: none;
	position: relative;
	padding-bottom: 0.5rem;
}

.sticky-text ul li::before {
	content: '';
	position: absolute;
	top: 0.5rem;
	transform: translateX(-100%);
	left: -0.5rem;
	width: 20px;
	height: 1px;
	color: transparent;
	border-bottom: 1px solid var(--grey);
}

.sticky-text a {
	text-decoration: none;
	color: var(--accent);
}

.sticky-list {
	width: 100%;
}

.sticky-list ul {
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.5rem;
	row-gap: 0.5rem;
	flex-wrap: wrap;
	padding-inline: 1rem;
}

.sticky-list ul li {
	color: var(--accent);
	padding: 0 1rem;
	position: relative;
	text-wrap: no-wrap;
	display: block;
}

.sticky-list ul li:after {
	content: '#';
	position: absolute;
	top: 50%;
	left: 0.3rem;
	transform: translateY(-50%);
	color: var(--accent);
}

.page-subtitle {
	font-family: var(--font-title);
	font-size: 2rem;
	text-transform: uppercase;
	padding-block: 1.5rem 1rem;
	position: relative;
	color: var(--off-black);
	width: fit-content;
}

.page-subtitle::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -0.5rem;
	width: 110px;
	height: 1px;
	background-color: transparent;
	border-bottom: 1px solid var(--grey);
	transform: translate(100%, -50%);
}

.home-article-section {
	flex-basis: 70%;
	padding-right: 6rem;
	margin-top: 1rem;
}

.articles-container {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 3rem;
}

.home-article {
	width: 100%;
	border: 1px solid transparent;
	-webkit-transition:  border 0.5s ease;
	-moz-transition:  border 0.5s ease;
	-o-transition:  border 0.5s ease;
	-ms-transition: border 0.5s ease;
	transition: border 0.5s ease;
}

.home-article h1 {
	font-size: 3rem;
	font-weight: 800;
	font-family: var(--font-text);
	color: var(--grey);
	padding-bottom: 1rem;
}

.home-article h1 a {
	color: var(--grey);
	text-decoration: none;
	transition: 0.3 color ease;
}

.home-article h1 a:hover {
	color: #000;
}

.article-meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.article-meta div {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
}

.article-meta div span {
	color: var(--off-black);
	font-size: 1rem;
	font-family: var(--font-text);
	text-align: right;
	font-weight: 500;
	letter-spacing: 1.5px;
}

.article-meta div p {
	color: var(--accent);
	font-size: 1rem;
	font-family: var(--font-text);
	text-align: right;
	font-weight: 500;
	letter-spacing: 1.5px;
	display: block;
	text-wrap: nowrap;
	padding-bottom: 1.5rem;
}

.article-img {
	width: 100%;
	height: 500px;
}

.article-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-excerpt {
	font-size: 1.2rem;
	font-family: var(--font-text);
	font-weight: 400;
	color: var(--off-black);
	line-height: 25px;
	width: 100%;
	margin-top: 1rem;
}

.article-tags {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.5rem;
	padding-top: 0.5rem;
}

.article-tags span {
	color: var(--off-black);
	font-size: 1rem;
	font-family: var(--font-text);
	text-align: right;
	font-weight: 500;
	letter-spacing: 1.5px;
}

.article-tags p {
	color: var(--accent);
	font-size: 1rem;
	font-family: var(--font-text);
	text-align: right;
	font-weight: 500;
	letter-spacing: 1.5px;
}

.article-tags p:last-of-type > .comma {
	display: none;
}

.site-footer {
	width: 100%;
	height: 400px;
	background-color: var(--accent);
	margin-top: 6rem;
}

.site-footer-content {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.site-info {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1rem;
	color: var(--off-white);
	font-family: var(--font-text);
}

.site-info h1 {
	font-size: 2rem;
  	font-weight: 800;
}

.site-info p {
	font-size: 1rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 600;
}

.site-footer nav ul {
	list-style: none;
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1rem;
	width: 500px;
	border: 1px solid white;
	padding: 3rem;
}

.site-footer nav ul li {
	text-transform: uppercase;
	font-weight: 600;
	font-size: 1rem;
	font-family: var(--font-text);
	color: var(--off-white);
	transition: 0.2s color ease;
	letter-spacing: 1.5px;
}

.site-footer nav ul li:hover {
	color: var(--grey);
}

.site-footer nav ul a {
	text-decoration: none;
	cursor: pointer;
	color: inherit;
}

.data-container {
	margin-top: 3rem;
}

.project-grid {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 3rem;
	padding-block: 2rem;
}

.project {
	width: 100%;
	border: 1px solid transparent;
	-webkit-transition:  border 0.5s ease;
	-moz-transition:  border 0.5s ease;
	-o-transition:  border 0.5s ease;
	-ms-transition: border 0.5s ease;
	transition: border 0.5s ease;
}

.project img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.btn {
	width: fit-content;
	background-color: var(--accent);
	color: var(--off-white);
	transition: all 0.5s ease;
	margin-top: 1rem;
	font-size: 1rem;
	font-family: var(--font-text);
	font-weight: 600;
	letter-spacing: 1.5px;
	display: block;
	float: right;
}

.btn:hover {
	background-color: var(--grey);
}

.btn a {
	color: inherit;
	text-decoration: none;
	display: block;
	padding: 0.5rem 1rem;
}

.home-article:has(.btn:hover) {
	border: 1px solid var(--grey);
}

.project {
	border: 1px solid transparent;
}

.project:has(.btn:hover) {
	border: 1px solid var(--grey);
}

.nav-btn {
	display: none;
	cursor: pointer;
}

.nav-close-btn {
	display: none;
	cursor: pointer;
}

/* Single Pages */

.single-banner {
	width: 100%;
	margin: 0;	
	padding: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	height: 60vh;
}

.single-title {
	font-family: var(--font-title);
	font-size: 3rem;
	margin-block: 2rem 0.5rem;
	text-shadow: 1px 1px 1px #000;
}

.single-excerpt {
	font-family: var(--font-title);
	font-size: 1.8rem;
	margin-bottom: 2rem;
	background-color: rgba(45,153,226,0.3);
	width: fit-content;
	padding: 0.5rem;
}

.single-content {
	font-family: var(--font-text);
}

.single-content p {
	font-size: 1rem;
	line-height: 25px;
	padding-bottom: 1rem;
}

.single-content h2 {
	font-size: 3rem;
	font-family: var(--font-title);
	margin-block: 2rem 0.5rem;
}

.single-content h3 {
	font-size: 1.2rem;
	font-weight: 700;
	padding-block: 0 0.8rem;
}

.single-content pre {
	font-style: italic;
	line-height: 26px;
	max-width: 100%;
	text-wrap: wrap;
}

.single-content a {
	color: var(--purple);
	text-decoration: none;
}

.single-content a:hover {
	text-decoration: underline;
}

.single-content button {
	width: fit-content;
	background-color: var(--accent);
	color: var(--off-white);
	transition: all 0.5s ease;
	margin-top: 1rem;
	font-size: 1rem;
	font-family: var(--font-text);
	font-weight: 600;
	letter-spacing: 1.5px;
	display: block;
	border: none;
	padding: 0.5rem 1rem;
	cursor: pointer;
}

.single-content button:hover {
	background-color: var(--grey);
}

.single-date {
	font-size: 1.8rem;
	font-family: var(--font-title);
	padding-bottom: 1rem;
	padding-top: 1rem;
}

.contact-popup {
	position: fixed;
	z-index: 999;
	top: -300%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--purple);
	padding: 3rem;
	border-radius: 5px;
	border: 1px solid var(--grey);
}

.contact-popup label{
	font-size: 1.5rem;
	color: #fff;
	font-family: var(--font-title);
}

.contact-popup input, .contact-popup textarea {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.5rem;
	font-size: 1.2rem;
	font-family: var(--font-text);
	color: var(--grey);
}

.contact-popup .wpcf7-not-valid-tip,
.contact-popup .wpcf7 form.invalid .wpcf7-response-output
{
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 500;
	margin-top: -1rem;
	margin-bottom: 0.5rem;
	color: #a91c41;
	border: none;
}

.contact-popup .wpcf7 form.invalid .wpcf7-response-output {
	text-align: center;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.contact-popup input[type="submit"] {
	background-color: white;
	cursor: pointer;
	border: none;
	color: black;
	transition: 0.3 all ease;
	font-family: var(--font-title);
	font-size: 1.5rem;
	border-radius: 5px;
}

.contact-popup input[type="submit"]:hover {
	background-color: var(--grey);
	color: #fff;
}

.contact-popup .wpcf7 form.sent .wpcf7-response-output {
	border: none;
	font-size: 1.8rem;
	color: #fff;
	font-family: var(--font-title);
	text-align: center;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-wrap: balance;
	margin-top: -0.2rem;
}

.wpcf7-form.sent p {
    display:none;
}

.close-popup {
	position: absolute;
	top: 1rem;
	right: 1rem;
	aspect-ratio: 1 / 1;
	border: none;
	background-color: #fff;
	color: black;
	cursor: pointer;
	outline: none;
	border-radius: 5px;
	font-family: var(--font-title);
	font-size: 2rem;
	padding: 0.3rem 1rem 0.2rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.close-popup:hover {
	background-color: var(--grey);
	color: #fff;
}

.error-404 {
	min-height: 30vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 2rem;
	flex-direction: column;
	font-family: var(--font-text);
}
 
@media (max-width: 1490px) {
    .site-header-menu, 
	.site-content, 
	.site-footer-content {
		padding-inline: 4rem;
	}

	.home-article-section {
		padding-right: 3rem;
	}

	.sticky-img-container img {
		height: 250px;
	}

}

@media (max-width: 899px) {
	.home-container-flex {
		flex-direction: column-reverse;
	}
	
	.home-sticky-section {
		flex-basis: 100%;
		position: static;
	}

	.home-article-section {
		flex-basis: 100%;
	}

	.site-header-menu, 
	.site-content, 
	.site-footer-content {
		padding-inline: 1rem;
	}

	.home-article-section {
		padding-right: 0;
	}

	.site-header-menu nav {
		position: fixed;
		top: 0;
		left: 0;
		background-color: var(--purple);
		height: 100dvh;
		width: 100%;
		z-index: 3;
		display: flex;
		flex-direction: column-reverse;
		align-items: center;
		justify-content: flex-end;
		transform: translateY(-100dvh);
		transition: transform 1s ease-in-out;
	}

	.site-header-menu nav ul {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2rem;
		margin-top: 220px;
	}

	.site-header-menu nav ul li {
		color: var(--off-white);
		font-size: 2rem;
	}

	.nav-btn {
		display: block;
	}


	.nav-close-btn {
		display: block;
		color: var(--off-white);
		width: 100%;
		text-align: right;
		margin-right: 2rem;
		margin-top: 2rem;
	}

	.article-meta {
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		padding-bottom: 0.5rem;
	}

	.article-meta div{
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
	}

	.article-meta h1 {
		font-size: 2rem;
	}

	.article-meta div p {
		padding-bottom: 0;
	}

	.article-img {
		height: 250px;
	}

	.site-footer-content {
		flex-direction: column;
		width: 100%;
		gap: 2rem;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.site-footer {
		width: 100%;
		height: auto;
		padding-block: 2rem;
	}

	.site-footer nav {
		width: 100%;
	}

	.site-footer nav ul {
		width: 100%;
		padding: 1rem;
	}

	.code-container pre {
		width: 100%;
		text-wrap: wrap;
	}

}
