/*
Theme Name: Richmond Tenants Union
Author: Roman Franklin
Author URI: https://romanfranklin.com/
Description:Custom theme for RTU
Version: 1.0
*/

* {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	overflow-y: scroll;
}

html, body {
	padding: 0;
	margin: 0;
	width: 100%;
}

body {
	font-family: 'Roboto Slab', serif;
	font-size: 16px;
	font-weight: 300;
}


a:link, a:hover, a:active, a:visited {
	color: #c10100;
	transition:0.25s;
	text-decoration: none;
}

img {
	max-width:100%;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: 'Roboto Slab', serif;
	font-weight: 300;
	color:#3d3d3d;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1.25em 0 0.75em;
	font-weight: 500;
}

blockquote {
	border: 6px dashed #c10100;
	font-style: italic;
	font-weight: 300;
	font-size: 16px;
	margin: 40px auto;
	max-width: 600px;
	padding: 40px;
}

blockquote p {
	font-family: 'Roboto Slab', serif;
	margin: 0;
}

.light {
	color: #fff;
}

.dark {
	color: #3d3d3d;
}

p {
	font-family: 'Roboto', sans-serif;
	line-height: 1.6em;
}

hr.house {
	height: 2px;
	border: 0;
	background: #c10100;
	width: 400px;
	max-width: 95%;
	margin: 40px auto;
	position: relative;
}

hr.house::before {
	content: '';
	background: url('assets/images/div-icon.png') center;
	height:16px;
	width: 17px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-top: -9px;
	margin-left: -8px;
}






/* --------------- Header
/*---------------------------------------------------------------- */

.primary-header {
    border-bottom: 3px solid #c10100;
    border-top: 3px solid #212121;
    z-index: 100;
    width: 100%;
    background: #fff;
    position: fixed;
}

.header-container {
	max-width:1140px;
	width:95%;
	margin: 0 auto;
}

.topbar	{
	position: relative;
	margin-bottom: 40px;
	justify-content: space-between;
	transition: margin 0.25s;
}

.fixed-header .topbar {
	margin-bottom: 15px;
}

.topbar i {
	margin-right: 7px;
}

.topbar i:not(:first-child) {
	margin-left: 20px;
}

.join-button {
	position: relative;
	right: 10px;
	-webkit-backface-visibility: hidden;
	background: #212121;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	padding: 6px 16px;
	margin-left: 40px;
	height:33px;
	color: #fff;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	cursor:pointer;
}

.join-button,
.mobile-join-button {
	font-family: 'Roboto';
	font-size: 14px;
	text-transform: uppercase;
	font-weight: bold;
}

.rtu-main-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.nav-home {
	padding: 10px 20px 7px;
	text-align: center;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: center;
	align-items:center;
	align-self: center;
	width: 100%;
	height: 100%;
}

.nav-home li {
	padding: 0 16px;
	position: relative;
	height:100%;
	transition:0.25s;
	/*background: #c10100;*/
	/*border-color: #c10100;*/
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.nav-home li a {
	display: block;
	height: 100%;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-block {
	background: #c10100;
}

.header-block--left,
.header-block--right {
	flex:1;
	position: relative;
}

.header-block--left a,
.header-block--right a {
	color:#fff;
}

.header-block--left {
	right: -10px;
	border-top-left-radius: 10px;
}

.header-block--right {
	left: -10px;
	border-top-right-radius: 10px;
}

.header-block--left .nav-home {
	justify-content: flex-end;
}

.header-block--right .nav-home {
	justify-content: flex-start;
}

.header-block--middle {
	z-index: 10;
	width:170px;
	position: relative;
	transition: 0.25s;
}

.fixed-header .header-block--middle {
	width:125px;
}

.logo {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    transition: 0.25s;
    width: 100%;
}

.logo a, .logo img {
	display: block;
	width: 100%;
}

.rtu-main-menu {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
}

.nav-home > li::before,
.nav-home > li::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: -3px;
	width: 3px;
	background: #fff;
	transform: scaleY(0);
	transition: 0.15s;
}

.nav-home > li::before {
	left: 0;
}

.nav-home > li::after {
	right: 0;
}

.nav-home > li:hover::before,
.nav-home > li:hover::after {
	transform: scale(1);
}

.nav-home > li:hover {
	border-top-right-radius: 6px;
	border-top-left-radius: 6px;

}

.nav-home li.current-menu-item {
	z-index: 2;
	font-weight: 500;
	position: relative;
}

.nav-home li.current-menu-item::before {
	width: 100%;
    color: #c10100;
    background: #fff;
    margin-left: 10px;
    border-width: 3px;
    border-style: solid;
    border-color: inherit;
    border-bottom: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    position: absolute;
    font-weight: 500;
    top: -4px;
    content: "";
    z-index: -1;
    top: -14px;
    left: -10px;
    bottom: -10px;
    right: -10px;
    transform: scale(1);
}


.nav-home li.current-menu-item::after {
	display: none;
}

.nav-home li.current-menu-item a {
	color:#c10100;
}

.rtu-main-menu .menu-item-has-children > ul {
	top: 100%;
    margin-top: 3px;
    margin-left: -16px;
	width: 200px;
    padding-left: 0;
    background: #fff;
    position: absolute;
    display: block;
    z-index: 10;
    -webkit-transition: all 0.15s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -o-transition: all 0.15s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition: all 0.15s cubic-bezier(0.000, 0.000, 0.580, 1.000);
/*    transform-origin: 0 0;
    transform: scaleY(0);*/
    opacity: 0;
    visibility: hidden;
    border: 3px solid #c10100;
    border-top: 0;
    padding: 10px 0;
    border-bottom-width: 2px;
    border-radius: 0 0 4px 4px;
}

.rtu-main-menu .menu-item:hover > ul {
	opacity: 1;
	/*transform: scaleY(1);*/
	visibility: visible;
}

.rtu-main-menu  .menu-item-has-children > ul > li {
	padding: 0 3px;
    margin: 0;
    position: relative;
    line-height: 16px;
    text-align: left;
}

.rtu-main-menu  .menu-item-has-children > ul > li a {
	height: 100%;
    display: block;
    padding: 7px 20px;
    background: transparent;
    font-size: 14px;
    -webkit-box-shadow: none;
    box-shadow: none;
    line-height: 1.6em;
    color:#c10100;
}

.rtu-main-menu .menu-item-has-children > ul > li:hover > a {
	background-color: #c10100;
	color:#fff;
}

.rtu-main-menu .menu-item-has-children > ul li.current-menu-item::before {
	display: none;
}

.mobile-nav-wrapper {
	display: none;
	width: 100%;
	height: 50px;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	padding-top: 3px;
}

.mobile-nav {
	position: fixed;
	top: -10px;
	left: 0;
	padding: 40px 10px 10px;
	transform:translateY(-100%);
	width: 100%;
	background:#fff;
	border:1px solid #0f0f0f;
	box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.05);
	transition:0.3s;
	transition-timing-function: cubic-bezier(.66,.01,0,1.05);
	z-index:200;
}

.mobile-nav.open {
	transform:translateY(0);
}

.mobile-nav .menu {
	margin-bottom: 0;
}

.mobile-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	padding: 0 20px;
}

.mobile-nav li {position: relative;}

.mobile-nav li.menu-item-has-children::after {
	content: '/f067';
	font-family: 'Font Awesome 5 Free';
	font-weight: 500;
	position: absolute;
	right: 0;
	top: 0;
}

.mobile-nav a {
	color:#fff;
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid #0f0f0f;
}

.menu-bars {
	width: 36px;
	height: 5px;
	background: #fff;
	position: relative;
	margin: 0 auto;
}

.menu-bars::before,
.menu-bars::after {
	width: 100%;
	height: 100%;
	content: '';
	position: absolute;
	left: 0;
	background: inherit;
}

.menu-bars::before {
	top: -10px;
}

.menu-bars::after {
	bottom: -10px;
}

.mobile-overlay {
	position: fixed;
	background: rgba(0, 0, 0, 0.6);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	transition: 0.3s;
	cursor: pointer;
	z-index: -9999;
}

.mobile-overlay.open {
	opacity: 1;
	z-index: 10;
}

.curve {
	position: absolute;
	height: 100%;
	width: 10px;
	border-radius: 10px;
	background: inherit;
	top: 0;
}

.curve.top {
	border-top-right-radius: 0;
	border-top-left-radius: 0;
}

.curve.bottom {
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.curve.left {
	/* left: -20px; */
	left: 0;
	transform: translateX(-100%);
}

.curve.right {
	/* right: -20px; */
	right: 0;
	transform: translateX(100%);
}

.curve::after {
	content: '';
	background: #fff;
	width: 100%;
	height: 100%;
	position: absolute;
}

.curve.left.top::after { border-top-right-radius: 10px; }
.curve.right.top::after { border-top-left-radius: 10px; }
.curve.left.bottom::after { border-bottom-right-radius: 10px; }
.curve.right.bottom::after { border-bottom-left-radius: 10px; }

.red-bg .curve::before,
.red-bg .curve::after {
	background: #c10100;
}

.dark-bg .curve::before,
.dark-bg .curve::after {
	background: #212121;
}


/* --------------- Main
/*---------------------------------------------------------------- */

main {
	padding-top:120px;
	/* overflow-x: hidden; */
}

section:not(.call-to-action) {
	padding: 60px 0;
}

.full-width {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.red-bg { background: #c10100; color: #fff; }
.dark-bg { background: #212121; color: #fff; }
.darker-bg { background: #111; color: #fff; }

.content {
	padding: 20px 60px 0;
    /* border: 6px dashed #c10100; */
    margin: 3px auto 5px;
    max-width: 900px;
    /* box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.05); */
}

.content-header {
	background: #c10100;
	margin-top: 3px;
	padding: 75px 0 40px;
	text-align: center;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.content-header h1 {
	color: #fff;
	margin: 0;
}

.box {
	border: 1px solid #0f0f0f;
	box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
	border-radius: 6px;
	padding: 0 40px;
}

.call-to-action {
	position: relative;
	padding: 100px 0;
	overflow-x: hidden;
}

.call-to-action::before {
	content:'';
	position: absolute;
	height:100%;
	width:100%;
	top: 0%;
	left: 0%;
	background: url('assets/images/rtu_logoFull.jpg') center no-repeat;
	background-size: 100%;
	opacity:0.05;
}

.header-text {
	font-weight: 300;
	color: #3d3d3d;
		margin: 0 auto;
}

.h1.header-text {
	font-size:36px;
	max-width: 760px;
	line-height: 1.3em;
}

.h2.header-text {
	max-width:900px;
	font-size: 24px;
	line-height: 2em;
}


.rtu-form-field,
.rtu-form-fields {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	margin: 0 0 20px;
}

.rtu-form-fields.inline {
	justify-content: space-between;
	margin-bottom: 0;
}

.rtu-form-fields.inline .rtu-form-field {
	width: 48%;
	margin-bottom: 0;
}

.rtu-form-field input:not([type="radio"]),
.rtu-form-field textarea,
.rtu-form-field select {
	width:100%;
	border-radius: 4px;
	border:0;
	background: #212121;
	padding: 10px;
	color:#fff;
	transition:0.1s;
}

.rtu-form-field input:not([type="radio"]):focus,
.rtu-form-field textarea:focus {
	outline: none;
	background:#3d3d3d;
}

.rtu-form-right > .rtu-form-field,
.rtu-form-right .rtu-form-fields {
	margin: 0 0 10px;
}

.rtu-form-field br {
	display: none;
}

label.below {
	font-size:12px;
	margin-top: 4px;
}

.wpcf7 input[type="submit"] {
	width: 100%;
	border-radius: 6px;
	background: #c10100;
	color:#fff;
	border: 0;
	padding:12px;
	cursor: pointer;
	transition: 0.15s;
	margin-top: 40px;
}

.wpcf7 input[type="submit"]:hover {

}

.rtu-form-left {
	width: 33%;
	text-align: right;
	margin-right: 30px;
}

.rtu-form-right {
	flex: 1;
}

.wpcf7-radio {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height:100%;
}



/* --------------- Timeline
/*---------------------------------------------------------------- */

.timeline-wrapper {
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	margin-top: 100px;
}

.timeline {
	position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 0;
    border-left: 2px dashed #fff;
    border-right: 2px dashed #fff;
}

.timeline-item {
	background: #fff;
    border: 4px dashed #c10100;
    box-shadow: 6px 6px, 6px -6px, -6px -6px, -6px 6px;
    margin: 0 auto 200px;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
}

.timeline-item:last-child {
	margin-bottom: 70px;
}

.timeline-item .date {
	position: absolute;
    color: #212121;
    top: -50px;
    height: 40px;
    background: #fff;
    border-radius: 6px 6px 0 0;
    color: #c10100;
    padding: 8px 20px;
    font-weight: 500;
}

.timeline-item .description {
	color: #212121;
}

/* --------------- Sign Up Overlay
/*---------------------------------------------------------------- */

.sign-up-overlay {
	padding: 100px 0;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: #212121;
	z-index: 200;
	transform: translateY(-100%);
	transition: 0.7s;
	transition-timing-function: cubic-bezier(.66,.01,0,1.05);
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
}

.sign-up-overlay.open {
	transform: translateY(0);
}

.sign-up-container {
	opacity: 0;
	transition: 0.6s;
	transition-delay: 0.7s;
}

.open .sign-up-container {
	opacity: 1;
}

.sign-up-button {
	background: #c10100;
    text-align: center;
    padding: 14px 20px;
    align-self: center;
    width: 100%;
    border-radius: 6px;
}

.close-wrapper {
	width: 100%;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: center;
}
.close-wrapper.top {
	border-top: 3px solid #c10100;
	top: 0;
	position: absolute;
}
.close-wrapper.bottom {
	border-bottom: 5px solid #c10100;
	position: relative;
	bottom: -100px;
}

.mobile-nav .close-wrapper.bottom {
	bottom: -10px;	
}

.close-button {
	padding: 6px 20px;
	margin: 0 auto;
	position: relative;
	background: #c10100;
	cursor: pointer;
}

.top .close-button { border-radius: 0 0 6px 6px; }
.bottom .close-button { border-radius: 6px 6px 0 0; }

.open-overlay {
	cursor: pointer;
}


/* --------------- Footer
/*---------------------------------------------------------------- */

.footer {
	padding: 60px 0;
	background:#c10100;
	border-top: 5px solid #fff;
	color: #fff;
}

.footer a {
	color: #fff;
	transition: 0.25s;
	position: relative;
}

.footer a::before {
	content:  '';
	position: absolute;
	bottom: -4px;
	height: 2px;
	background: #fff;
	width: 100%;
	transform-origin: 0;
	transition: inherit;
	transform: scaleX(0);
}

.footer a:hover::before {
	transform: scaleX(1);
}

.footer ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer ul li {
	margin-bottom: 10px;
}

.footer ul:not(.social) li i {
	margin-right: 10px;
}

.social li {
	color: #fff;
    background: #0f0f0f;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    font-size: 22px;
    float: left;
    margin-right: 10px;
}

.social li a {
	height: 100%;
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social li a::before {
	display: none;
}

.social li a:hover {
	color: #c10100;
}




/* --------------- Animations
/*---------------------------------------------------------------- */

.animated { animation-fill-mode: forwards; }
.fade-in-up { opacity: 0; animation: fadeInUp 0.6s ease-in-out forwards; }
.fade-in-right { opacity: 0; animation: fadeInRight 0.8s ease-in-out forwards; }
.fade-in-left { opacity: 0; animation: fadeInLeft 0.8s ease-in-out forwards; }
.expand-x { transform: scaleX(0); animation:  expandX 0.6s ease-in-out forwards; }

.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.55s; }

@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(20%);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInRight {
	0% {
		opacity: 0;
		transform: translateX(5%);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInLeft {
	0% {
		opacity: 0;
		transform: translateX(-5%);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes expandX {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}






/* --------------- Breakpoints
/*---------------------------------------------------------------- */


@media (max-width: 1020px) {
	.topbar {
		margin-bottom: 24px;
	}

	.contact-info {
		max-width:300px;
		flex-wrap: wrap;
	}

	.topbar i:not(:first-child) {
		margin-left: 0;
	}
}


@media (max-width: 768px) {
	.rtu-main-menu {
		display: none;
	}

	.topbar {
		margin-bottom: 60px;
	}

	.call-to-action::before {
		background-position: 43% 50%;
		background-size: cover;
	}

	.content {
		padding: 20px;
	}	
}

@media (max-width: 576px) {
	html {
		overflow-x: auto;
		overflow-y: auto;
	}

	.primary-header {
		position:  relative;
		padding-top: 45px;
	}

	.header-container {
		width: 92%;
	}

	.header-block--middle {
		width: 125px;
	}

	.mobile-nav-wrapper {
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
	}

	main {
		padding-top: 0;
	}

	.h1.header-text {
		font-size: 24px;
		line-height: 2em;
	}

	.h2.header-text {
		font-size: 20px;
	}

	.rtu-form-group,
	.rtu-form-field {
		display: block;
	}

	.rtu-form-left {
		width: 100%;
		text-align: left;
	}
}