:root {
	--in-primary:        #05311D;
	--in-primary-dark:   #011609;
	--in-secondary:      #F3FDE4;
    --in-gray:           #F2F4F9;
    --in-white:          #FFFFFF;
	--in-black:          #000000;
	--in-0:              #C9E6CF;
	--in-1:              #97D8AD;
	--in-2:              #017C57;
	--in-3:              #05311D;
	--in-closest:		 var(--in-primary);
	--in-farthest:       var(--in-primary-dark);
	--in-gradient: 	 	 radial-gradient(farthest-side circle at 35% 60%, var(--in-closest), var(--in-farthest));

    --in-primary-fade:   #41647a;
    --in-gray-strong-1:  #e7eaef;;
    --in-gray-strong-2:  #d7d9de;
    --in-gray-strong-3:  #a3a7ad;

	--in-shadow: 0 2px 4px rgba(0, 0, 0, 0.26);

	--in-primary-rgb: 5, 49, 29;

    /* Bootstrap overrides */
    --bs-primary:   var(--in-primary);
}


/* Layout */

.grid-layout {
	max-width: 1200px;
	margin-left: 1rem;
	margin-right: 1rem;
}

.main-section {
    padding-top:    3rem;
    padding-bottom: 3rem;
}

.hero-section,
.section-primary,
footer {
	background-image: var(--in-gradient);
	color: var(--in-white);
}

.hero-section,
.section-primary h2 {
	color: var(--in-white);
}

/* Typography */

h1 {
	/*display: block;*/
	padding-top: 2rem;
	margin-bottom: 2rem;
}

h2 {
	font-weight: bold !important;
	margin-bottom: 2rem;
}

h2:not(.heading-center) {
}

h3 {

}

.heading-center {
	text-align: center;
}

.main-section:not(.section-primary) h2 {
	color: var(--in-primary);
}

.h-emphasis {
	display: block;
}

.tagline {

}

/* Links */

a {
    color: var(--in-primary);
}

/* Action Link */
.action-link {
    --in-link-transition: .2s;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: bold;
    letter-spacing: .5;
    border: 1px solid var(--in-primary);
    padding: .6rem 1rem;
    border-radius: 100px;
    transition: var(--in-link-transition);
}

.action-link.backward {
    flex-direction: row-reverse;
}

.action-link svg {
    transition: var(--in-link-transition);
}

.action-link:not(.backward) svg {
    margin-left: .5rem;
}

.action-link.backward svg {
    margin-right: .5rem;
}

a.action-link:not(.backward):hover svg {
    margin-left: .8rem;
}

.action-link.backward:hover svg {
    margin-right: .8rem;
}

.action-link:hover {
    background: var(--in-secondary) !important;
    color: #000 !important;
    border: 1px solid var(--in-secondary);
}

/* Text links */

.link-text,
header a {
    text-decoration: none;
    position: relative;
}

.link-text::after {
    content: '';
    width: 0%;
    height: 2px;
    border-radius: 100px;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: .2s;
}

.action-link.action-primary {
    color: var(--in-white);
    background: var(--in-primary);
}

.action-link:hover .link-text::after,
.link-text:hover::after {
    width: 100%;
    transition: .2s;
}

.link-positive::after {
    background: var(--in-primary);
}

.link-negative::after {
    background: var(--in-white);
}
.menu.classic a::after {
    background: var(--in-primary);
}

/* Carousels */

.carousel .buttons button:not(:disabled) svg {
	fill: var(--in-primary);
}

.carousel .pagination .bullet {
	background: var(--in-gray-strong-2) !important;
}

.carousel .bullet.active {
	background: var(--in-primary) !important;
}

/* Card */

.card {
	border: none !important;
}

/* Popup */

.popup {
	position: fixed;
	z-index: 99999;
}

.popup,
.popup-backdrop {
	top:    0;
	bottom: 0;
	left:   0;
	right:  0;
}

.popup-backdrop {
	position: absolute;
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.popup-content {
	border: 1px solid gray;
	border-radius: 8px;
	min-height: 500px;
	position: absolute;
	top: 50%;
	left: 10px;
	right: 10px;
	transform: translateY(-50%);
	background: var(--in-white);
}

.modal-close-btn {
	position: absolute;
	top:   10px;
	right: 10px;
	z-index: 999999;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 100px;
	background: #fff;
	transition: .1s;
}

.modal-close-btn:hover {
	background: var(--in-primary);
}

.modal-close-btn:hover svg {
	fill: #fff;
}

.modal-close-btn svg {
	width:  2rem;
	height: 2rem;
	fill: var(--in-primary);
	transition: .1s;
}

/* social */

.social a {
	border-radius: 100%;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width:  3em;
	height: 3em;
	margin-right: 0.5em;
	position: relative;
	overflow: hidden;
}
.social svg {
	width:  1.5em;
	height: 1.5em;
	fill: white;
	z-index: 4;
	transition: .2s;
}
.social a span {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width:  100%;
	height: 100%;
	transform: scale(0, 0);
	background: var(--in-white);
	border-radius: 100%;
	transition: .2s;
}
.social a:hover span {
	transform: scale(1, 1);
}
.social a:hover svg {
	fill: var(--in-primary);
}

/* action button */

.action-btn {
	background: transparent;
}

/* Primary buttons */

.btn-primary-effect {
    padding: 8px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    text-decoration: none;
	border-radius: 100px;
	background: var(--in-primary);
	border: 1px solid var(--in-primary);
}

.btn-primary-effect:hover {
	background: var(--in-secondary);
	color: var(--in-primary);
	border-color: var(--in-secondary);
}

.btn-primary-effect.positive {
    color: var(--in-white);
}
.btn-primary-effect.positive:hover {
    color: var(--in-primary);
}

.btn-primary-effect.negative {
	background: var(--in-white);
    color: var(--in-primary);
}
.btn-primary-effect.negative:hover {
	background: var(--in-secondary);
}

/* Toggle buttons */

.toggle button {
	margin-right: 0;
	border-radius: 0;
}

.toggle button:first-child {
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

.toggle button:last-child {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* Other buttons */

.btn-pill {
    border-radius: 100px;
}

.btn-icon {
    background: none;
    border: none;
}

.btn-text {
    text-decoration: none;
    color: var(--in-primary);
    display: inline-flex;
    align-items: center;
}

.fab {
    position: fixed;
    border-radius: 100px;
    box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);
}

/* States */

.hidden {
	display: none !important;
}

.state-pressed {
	background: var(--in-primary);
	color: white;
}

.status-collapse {

}

/* Misc */

.icon.icon-left { margin-right: 10px; }


/* CTA section */

.cta-section {
	padding: 2rem 0;
}

.cta-section .cta {
	display: flex;
	align-items: center;
	border-radius: 100px;
	padding: 0.8rem 1.5rem;
	text-decoration: none;
	font-weight: bold;
}

.cta-section .cta-primary {
	margin-bottom: 1rem;
}

.cta-section .cta-secondary {
	border-width: 2px;
	border-style: solid;
	transition: .2s;
}

.cta-section .cta-primary svg {
	transition: .2s;
}

.cta-section .cta span {
	text-align: center;
	white-space: nowrap;
}

.cta-section .cta span:first-child {
	flex-grow: 1;
}

.cta-section .cta-secondary.positive {
	border-color: var(--in-primary);
}
.cta-section .cta-secondary.negative {
	border-color: #fff;
	color: #fff;
}

.cta-section .cta-secondary.negative:hover {
	background: var(--in-secondary);
	color: black;
	border-color: transparent;
}

.cta-secondary.positive {
	text-decoration: none;
	transition: .2s;
}
.cta-secondary.positive:hover {
	background: var(--in-secondary);
	color: black;
	border-color: transparent;
}

.cta-section .cta-secondary.positive svg {
/*.cta-section .cta-secondary.negative:hover svg {*/
	fill: var(--in-primary);
}

.cta-section .cta-secondary span:last-child svg {
	transition: .2s;
}
.cta-section .cta-secondary:hover span:last-child svg {
	transform: translateX(.5rem);
}
.cta-section .cta-primary:hover span:last-child svg {
	transform: translateX(.5rem);
}

/**************************************************
	POPUP
**************************************************/

.popup {
	position: fixed;
	z-index: 9999999;
	height: 100vh;
	width:  100vw;
}

.popup,
.popup .backdrop {
	top:    0;
	bottom: 0;
	left:   0;
	right:  0;
}

.popup .backdrop {
	position: absolute;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
}

.popup .main-container {
	display: flex;
	flex-direction: column;
	width:  95%;
	height: 95%;
	max-width: 1000px;
	max-height: 500px;
	position: relative;
	top:  50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--in-white);
	box-shadow: var(--in-shadow);
}

.popup .top-bar {
	display: flex;
	align-items: center;
	padding-left: 20px;
}

.popup .top-bar h1 {
	flex-grow: 1;
	padding: 0;
	margin: 0;
	font-size: 1rem;
	text-transform: capitalize;
}

.popup .close-btn {
	margin: 0;
	padding: .5rem;
	background: transparent;
	border: transparent;
	display: flex;
	align-items: center;
}

.popup .close-btn svg {
	width:  1.5rem;
	height: 1.5rem;
	fill: var(--in-primary);
	transition: .2s;
}

.popup .close-btn:hover {
	background: var(--in-primary);
}

.popup .close-btn:hover svg {
	fill: var(--in-white);
}

.popup .content {
	flex-grow: 1;
	padding: 0 20px 20px 20px;
	overflow-y: auto;
}

.popup .content p {
	padding-top: 0;
	margin-top: 0;
}

/**************************************************
	Video
**************************************************/

.video-wrapper {
	position: relative;
}

video {
	border-radius: 8px;
	width: 100%;
}

/**************************************************
	Blog posts
**************************************************/

.blog-post .tags {
	margin-top: .5rem;
}
.blog-post .tag {
	background: var(--in-secondary);
	color: var(--in-primary);
	text-decoration: none;
	padding: 0.4rem 0.5rem;
	transition: .2s;
}
.blog-post .tag:not(:last-child) {
	margin-right: 0.5rem;
}
.blog-post .tag:hover {
	background: var(--in-primary);
	color: var(--in-white);
}

/**************************************************
	MEDIA QUERIES
**************************************************/

@media screen and (min-width: 576px) {
	html {
		font-size: 18px;
	}

	.cta-section,
	.cta-section .grid-layout {
		flex-direction: row !important;
		justify-content: center;
	}
	.cta-section .cta-primary {
		margin-bottom: 0;
		margin-right: 2rem;
	}
	.cta-section .cta svg {
		margin-left: 1rem;
	}
	.popup .main-container {
		width:  90%;
		height: 90%;
	}
}

@media screen and (min-width: 768px) {
	.hero-section h1 {
		font-size: 55px;
	}
}

@media screen and (min-width: 1200px) {
	.grid-layout {
		margin-left: auto;
		margin-right: auto;
	}
	h2 {
		margin-bottom: 4rem;
	}
}
