/* Description: Master CSS file */

/*****************************************
Table Of Contents:
- General Styles
- Navigation
- Footer
- Media Queries
******************************************/


/**************************/
/*     General Styles     */
/**************************/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Colors */
:root {
  --color1: #333333; /* body text */
  --color2: #111111; /* heading text */
  --color3: #888888; /* footer text */
	--color4: #f8f8f8; /* section background */
	--color5: #ffffff; /* element background */
	--color6: #d6d6d6; /* footer lines, nav border */
  --color7: #666666; /* cover text, filter pills, nav links */
}
/* end of colors */

body,
html {
  width: 100%;
	height: 100%;
}

body {
	background-color: var(--color4);
}

body, p {
	color: var(--color1); 
	font: 400 1rem/1.625rem "Inter", sans-serif;
	font-optical-sizing: auto;
}

p {
	margin-bottom: 20px;
}

.p-large {
	color: var(--color3);
	font-size: 1.25rem;
	line-height: 1.875rem;
	letter-spacing: -0.2px;
}

.p-small {
	font-size: 0.875rem;
	line-height: 1.375rem;
}

h1 {
	margin-bottom: 14px;
	color: var(--color2);
	font-weight: 600;
	font-size: 2.25rem;
	line-height: 2.625rem;
	letter-spacing: -0.6px;
}

h2 {
	margin-bottom: 10px;
	color: var(--color2);
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 2.125rem;
	letter-spacing: -0.3px;
}

h3 {
	margin-bottom: 8px;
	color: var(--color2);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.75rem;
}

h4 {
	margin-bottom: 3px;
	color: var(--color2);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.625rem;
}

a {
	color: var(--color1); 
}

b,
strong {
	font-weight: 600;
}

.text-center {
	text-align: center;
}

.container-prim,
.container-sec {
	margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 20px;
  justify-content: center;
  align-items: start;
  height: 100%;
}

img {
	max-width: 100%;
	vertical-align: middle; /* solves a gap when inside image-container */
}

ul {
	list-style: none;
}

.divider hr {
	height: 1px;
	border: none;
	background-color: var(--color6);
}

.news {
	display: inline-block;
	margin-bottom: 0;
	padding: 7px 18px 7px 18px;
	border-radius: 6px;
	background-color: #e7e7e7;
}

.btn {
	display: inline-block;
	padding: 20px;
	border: 1px solid var(--color2);
	border-radius: 4px;
	background-color: var(--color2);
	color: #ffffff;
	font-weight: 400;
	font-size: 1rem;
	line-height: 0;
	text-decoration: none;
	transition: all 0.2s;
}

.btn:hover {
	background-color: var(--color5);
	color: var(--color2); /* needs to stay here because of the color property of a tag */
	text-decoration: none;
}

.btn-lg {
	padding: 26px 32px 26px 32px;
}

.btn-sm {
	padding: 16px 18px 16px 18px;
}

.btn-outline {
	border-color: var(--color2);
	background-color: transparent;
	color: var(--color2);
}

.btn-outline:hover {
	background-color: var(--color2);
	color: #ffffff; /* needs to stay here because of the color property of a tag */
}

input,
textarea {
	width: 100%;
	margin-bottom: 22px;
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 1.25rem;
	border: 1px solid var(--color6);
	border-radius: 4px;
	background-color: var(--color5);
	color: var(--color1);
	font-size: 1rem;
	line-height: 1.5rem;
	font-family: "Inter"; /* overrides default browser settings */
	appearance: none; /* removes inner shadow on form inputs on ios safari */
	-webkit-appearance: none; /* removes inner shadow on form inputs on ios safari */
}

::placeholder {
	color: var(--color3);
	opacity: 1; /* Firefox */
}

textarea {
	display: block;
	height: 14rem; /* used instead of html rows to normalize height between Chrome and IE/FF */
}

input:hover,
input:focus,
textarea:hover,
textarea:focus {
	border-color: var(--color2);
	outline: none; /* Removes blue border on focus */
}

.btn-submit {
	display: inline-block;
	width: 100%;
	height: 3.75rem;
	border: 1px solid var(--color2);
	border-radius: 4px;
	background-color: var(--color2);
	color: #ffffff;
	font-size: 1rem;
	line-height: 0;
	font-family: "Inter"; /* overrides default browser settings */
	cursor: pointer;
	transition: all 0.2s;
}

.btn-submit:hover {
	background-color: transparent;
	color: var(--color2);
}

.alert,
.success {
	margin-bottom: 15px;
	color: #ff0000;
	font-weight: 600;
	text-align: center;
}

.success {
	color: #139213;
}

.mt-4 {
	margin-top: 40px;
}

.mt-10 {
	margin-top: 100px;
}

.mb-0 {
	margin-bottom: 0;
}

.mb-2 {
	margin-bottom: 20px;
}

.mb-4 {
	margin-bottom: 40px;
}

.mb-6 {
	margin-bottom: 60px;
}

.mb-8 {
	margin-bottom: 80px;
}

.mb-10 {
	margin-bottom: 100px;
}

.pt-2 {
	padding-top: 20px;
}

.pt-3 {
	padding-top: 30px;
}

.pt-4 {
	padding-top: 40px;
}

.pt-5 {
	padding-top: 50px;
}

.pt-6 {
	padding-top: 60px;
}

.pt-8 {
	padding-top: 80px;
}

.pt-12 {
	padding-top: 120px;
}

.pt-14 {
	padding-top: 140px;
}

.pb-3 {
	padding-bottom: 30px;
}

.pb-4 {
	padding-bottom: 40px;
}

.pb-5 {
	padding-bottom: 50px;
}

.pb-6 {
	padding-bottom: 60px;
}

.pb-8 {
	padding-bottom: 80px;
}

.pb-12 {
	padding-bottom: 120px;
}

.pb-14 {
	padding-bottom: 140px;
}


/**********************/
/*     Navigation     */
/**********************/
nav {
	border-bottom: 1px solid var(--color6);
  background: var(--color4);
}

nav .container-prim {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

nav a,
nav a:hover {
	text-decoration: none;
}

nav .logo-image {
	margin-top: 14px;
	margin-bottom: 14px;
	line-height: 0;
}

nav .logo-image img {
	width: 77px;
	height: 13px;
}

nav .navbar {
	display: none;
	width: 100%;
	padding-top: 5px;
	padding-bottom: 15px;
}

@-webkit-keyframes slideIn {
	from { 
		transform: translateY(-100%); 
	}
	to { 
		transform: translateY(0); 
	}
}
@keyframes slideIn {
	from { 
		transform: translateY(-100%); 
	}
	to { 
		transform: translateY(0); 
	}
}

nav .navbar.active {
	display: block;
	animation: slideIn 0.1s;
}

nav ul {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	text-align: center;
}

nav ul li {
	padding: 0.5rem 0.625rem 0.5rem 1.25rem;
	font-size: 0.875rem;
}

nav ul li a {
	color: var(--color7);
}

nav ul li a:hover {
	color: var(--color2);
}

/* Hamburger */
nav .hamburger {
  transition: opacity .3s;
}

nav .hamburger:hover {
  cursor: pointer;
  opacity: .5;
}

nav .hamburger .line{
	width: 28px;
  height: 2px;
  margin: 6px auto;
  border-radius: 5px;
  background: var(--color2);
  transition: all 0.3s ease-in-out;
}
/* end of hamburger */


/****************/
/*     Hero     */
/****************/
.hero {
	margin-bottom: 70px;
	padding-top: 55px;
}


/******************/
/*     Header     */
/******************/
.header {
	margin-bottom: 65px;
	padding-top: 45px;
}

.header h1 {
	margin-bottom: 4px;
}


/*******************/
/*     Filters     */
/*******************/
.filters {
	margin-bottom: 10px;
}

.filters ul {
	display: flex;
	flex-wrap: wrap;
	line-height: 1.875rem;
}

.filters ul li {
	margin-right: 8px;
	margin-bottom: 8px;
}

.filters ul li a {
	padding: 6px 15px;
	border: 1px solid #d3d3d3;
	border-radius: 4px;
	background-color: var(--color5);
	color: var(--color7);
	font-size: 0.875rem;
	text-decoration: none;
}


/*****************/
/*     Title     */
/*****************/
.title hr {
	height: 1px;
	margin-bottom: 14px;
	border: none;
	background-color: var(--color6);
}

.title h2 {
	margin-bottom: 2px;
}	

.title h2 a {
	color: unset;
	text-decoration: none;
}


/******************/
/*     Covers     */
/******************/
.cards-1 {
	margin-bottom: 80px;
}

.cards-1 .card {
	align-self: stretch; /* makes the content fill the row height */
	border-radius: 10px;
	background-color: var(--color5);
	box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.13) 0px 0px 0px 1px;
}

.cards-1 .grid {
	gap: 28px;
	row-gap: 36px;
}

.cards-1 img {
	width: 100%;
	border-radius: 10px;
}

.cards-1 .card-text {
	padding: 14px 18px 16px 18px;
}

.cards-1 h3 {
	margin-bottom: 3px;
	font-size: 1rem;
	line-height: 1.5rem;
}

.cards-1 p {
	margin-bottom: 0;
	color: var(--color7);
	font-size: 0.875rem;
	line-height: 1.25rem;
}


/*******************/
/*     Details     */
/*******************/
.text-3 {
	padding-top: 40px;
	margin-bottom: 100px;
}

.text-3 ul {
	padding-left: 15px;
	list-style: disc;
}

.text-3 ul li {
	margin-bottom: 8px;
}


/******************/
/*     Footer     */
/******************/
footer {
	padding-bottom: 3px;
	text-align: center;
}

footer hr {
	height: 1px;
	border: none;
	background-color: var(--color6);
}

footer hr.top {
	margin-bottom: 55px;
}

footer hr.bottom {
	margin-bottom: 20px;
}

footer ul {
	display: flex;
	justify-content: center;
	margin-bottom: 15px;
}

footer ul li {
	margin-right: 10px;
	margin-left: 10px;
}

footer p,
footer p a,
footer ul li a {
	color: var(--color3);
	text-decoration: none;
}

footer .socials {
	margin-bottom: 55px;
}

footer .socials img {
	width: 23px;
}

footer .socials .icon {
	margin-left: 5px;
	margin-right: 5px;
	filter: brightness(0) saturate(100%) invert(58%) sepia(34%) saturate(39%) hue-rotate(331deg) brightness(87%) contrast(80%);
}

footer .socials .icon.bluesky {
	width: 19px;
}

/******************************/
/*     Back To Top Button     */
/******************************/
#myBtn {
	position: fixed; 
 	z-index: 99; 
	bottom: 20px; 
	right: 20px; 
	display: none; 
	width: 52px;
	height: 52px;
	border: none; 
	border-radius: 50%; 
	outline: none; 
	background-color: var(--color2); 
	cursor: pointer; 
}

#myBtn:hover {
	background-color: var(--color1);
}

#myBtn img {
	margin-bottom: 0.25rem;
	width: 18px;
}


/*************************/
/*     Media Queries     */
/*************************/	
/* Min-width 768px */
@media (min-width: 768px) {
	/* General Styles */
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* end of general styles */
}
/* end of min-width 768px */


/* Min-width 992px */
@media (min-width: 992px) {
	/* General Styles */
	.h1-large {
		margin-bottom: 6px;
		font-size: 3.25rem;
		line-height: 3.75rem;
		letter-spacing: -1.6px;
	}

	.container-prim {
		max-width: 1230px;
	}

	.container-sec {
		max-width: 740px;
	}
	
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	/* end of general styles */


	/* Navigation */
	nav {
		padding-top: 5px;
		border-bottom: 0;
		background-color: var(--color4);
	}

	nav .navbar,
	nav .navbar.active {
		display: flex;
		align-items: center;
		width: auto;
		padding-top: 0;
		padding-bottom: 0;
	}

	nav ul {
		flex-direction: row;
	}

	nav ul li:last-of-type {
		padding-right: 0;
	}

	nav .hamburger {
		display: none;
	}
	/* end of navigation */


	/* Covers */
	.cards-1 p { /* all lines are for truncating the text to 2 lines */
		-webkit-box-orient: vertical;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}
	/* end of covers */
}
/* end of min-width 992px */


/* Min-width 1200px */
@media (min-width: 1200px) {
}
/* end of min-width 1200px */