/*
Theme Name:		Housing Registry Ottawa 2023
Author:			CMS Web Solutions
Author URI:		https://cmswebsolutions.com
Version: 1.01
*/

.otgs-development-site-front-end {
	display: none;
}

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

/* lato-regular - latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('fonts/lato-v23-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('fonts/lato-v23-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* lato-700 - latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('fonts/lato-v23-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('fonts/lato-v23-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* lato-900 - latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: local(''),
       url('fonts/lato-v23-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('fonts/lato-v23-latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

:root {
	--main-dark: 6, 52, 78;
	--main-light: 255, 255, 255;
	--accent-green: 215, 222, 39;
	--accent-black: 0, 0, 0;
	--accent-teal: 7, 170, 186;
	--accent-lightblue: 174, 226, 250;
}

.has-black-color {
	color: rgb(var(--accent-black));
}

.has-black-background-color {
	background-color: rgb(var(--accent-black));
}

.has-white-color {
	color: rgb(var(--main-light));
}

.has-white-background-color {
	background-color: rgb(var(--main-light));
}

.has-green-color {
	color: rgb(var(--accent-green));
}

.has-green-background-color {
	background-color: rgb(var(--accent-green));
}

.has-navy-color {
	color: rgb(var(--main-dark));
}

.has-navy-background-color {
	background-color: rgb(var(--main-dark));
}

.has-teal-color {
	color: rgb(var(--accent-teal));
}

.has-teal-background-color {
	background-color: rgb(var(--accent-teal));
}

.has-lightblue-color {
	color: rgb(var(--accent-lightblue));
}

.has-lightblue-background-color {
	background-color: rgb(var(--accent-lightblue));
}

html {
    font-size: 112.5%;
}

body {
	margin: 0 auto;
	font-family: Lato, sans-serif;
	font-weight: 400;
	position: relative;
	color: rgb(var(--main-dark));
	background-color: rgb(var(--main-light));
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	line-height: 1.556;
}

body.opennav {
	position:fixed;
}

@media (prefers-reduced-motion: reduce) {
	* {
		-webkit-animation-duration: 0.01ms !important;
		        animation-duration: 0.01ms !important;
		-webkit-animation-iteration-count: 1 !important;
		        animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

header, main, footer, iframe, embed, figcaption, figure, section, summary {
	display: block;
	position: relative;
	margin: 0 auto;
}

figure {
	display: table;
}

figcaption {
    display: table-caption;
	caption-side: bottom;
}

main,
.inner {
	display: block;
	margin: 0 auto;
	padding: 0;
	max-width: 1360px;
	position: relative;
}

main .inner {
	padding: 0 2em;
}

h1 {
	margin: 0 0 .75em;
	padding-top: .75em;
	font-size: 2.222rem;
	font-weight: 700;
	line-height: 1.417;
}

h2 {
	margin: 1.5em 0 .75em;
	font-size: 1.333rem;
	font-weight: 700;
	line-height: 1.417;
}

h2.category {
	margin: .75em 0 0;
	font-size: 1rem;
	font-weight: 700;
}

h2.category span {
	font-weight: 700;
}

h2 br {
	display: block;
}

h1 + h2 {
	margin: .25em 0 .75em;
}

h2 a {
	-webkit-text-decoration-color: #aaa;
	text-decoration-color: #aaa;
}

h2 a:hover,
h2 a:focus {
	color: rgb(var(--main-dark));
	-webkit-text-decoration-color: #222;
	text-decoration-color: #222;
}

h3 {
	margin: 1.5em 0 .75em;
	color: rgb(var(--main-dark));
	font-size: 1.222rem;
	font-weight: 700;
}

h4 {
	margin: 1.5em 0 .75em;
	color: rgb(var(--main-dark));
	font-weight: 700;
}

li, p + p, p * {
	margin-top: 0;
}

hr {
	height: 1.5em;
	border: 0;
	margin: 2em 0;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

a {
	color: rgb(var(--main-dark));
}

a:not([class]) {
	-webkit-text-decoration-skip: ink;
	        text-decoration-skip-ink: auto;
}

a[href^="tel:"] {
	text-decoration: none;
}

a:hover,
a:focus {
	font-weight: 700;
}

/* Remove the default :focus outline */
*:focus {
	outline: none;
}
   
/* Show a custom outline on :focus-visible */
*:focus-visible {
	outline: 2px solid rgb(var(--main-dark));
	outline-offset: 4px;
}

a:active {
	transition: color 2s;
	color: rgb(var(--main-dark));
}

a img {
	border: none;
	outline: none;
}

iframe,embed {
	max-width: 100%;
}

.sr-only {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
.clearfix {
	overflow: hidden;
	content: '';
	visibility: hidden;
	display: block;
	height: 1px;
	width: 1px;
	clear: both;
}

a.skip {
	position: absolute;
	z-index: 5;
	top: 0;
	left: -1000em;
	color: rgb(var(--main-light));
	background-color: rgb(var(--main-dark));
	text-decoration: none;
	border-radius: 0 0 3px 3px;
}

a.skip:focus,
a.skip:hover {
	left: 1em;
	top: 0;
	padding: .5em 1em;
}

input,
textarea,
select {
	margin: 0;
	font: inherit;
}

input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input:focus {
	outline: 2px solid rgb(var(--main-dark));
	box-shadow: 1px 1px 8px 1px rgb(var(--main-dark));
}

button,
.wp-block-button__link,
.wp-block-button__link:visited,
.newer a,
.older a,
a[rel~=category] {
	display: block;
	position: relative;
	left: 0;
	margin: 0 auto;
	padding: .5em 3em;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	color: rgb(var(--main-dark));
	background-color: rgb(var(--accent-green));
	border: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease-in-out;
	flex: 0 0 auto;
}

button:hover,
button:focus,
.newer a:hover,
.newer a:focus,
.older a:hover,
.older a:focus,
.wp-block-button__link:active,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	color: rgb(var(--main-light));
	background-color: rgb(var(--main-dark));
}

form label {
	display: block;
}

form button {
	margin: 0;
}

header {
	color: rgb(var(--main-dark));
	background: rgb(var(--main-light)) url(img/header_bg.jpg) center center no-repeat;
	background-size: cover;
}

header .inner {
	max-width: 1300px;
	padding: 1em;
}

.notice {
/* 	color: rgb(var(--main-light));
	background-color: rgb(8, 81, 104); */
	color: #000000;
	background-color: #ff6900;
}

.logo {
	max-width: 100px;
	margin: 0 auto;
	padding-top: .5em;
	text-align:center;
}

.utilities {
	text-align: center;
}

.utilities .secondary {
	display: inline-flex;
	list-style: none;
}

.utilities .secondary a {
	display: inline-block;
	margin-left: 1em;
	padding: .25em 1em;
	color: rgb(var(--main-dark));
	background-color: rgb(var(--accent-teal));
	text-decoration: none;
}

.utilities .secondary li:nth-of-type(odd) a {
	color: rgb(var(--main-dark));
	background-color: rgb(var(--accent-green));
}

.utilities .secondary a:hover,
.utilities .secondary a:focus,
.utilities .secondary li:nth-of-type(odd) a:hover,
.utilities .secondary li:nth-of-type(odd) a:focus {
	color: rgb(var(--main-light));
	background-color: rgb(var(--main-dark));
}

.switcher {
	display: inline;
	margin: 0 0 .75em;
	padding-left: 0;
	text-align: right;
	background-color: rgba(var(--main-light),.25);
}

.switcher li {
	display: inline-block;
	margin-left: .5em;
	padding: .25em;
	list-style: none;
}

.switcher a {
	text-decoration: none;
}

.switcher .active {
	font-weight: 900;
}

.switcher a:hover,
.switcher a:focus {
	font-weight: 900;
}

[role=search] form {
	display: inline-block;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

[role=search] form input {
	width: 100%;
}

[role=search] button {
	width: 36px;
	height: 36px;
	padding: 0;
	background: rgb(var(--accent-green)) url(img/search.png) center center no-repeat
}

.main_nav {
	margin: 0;
	background-color: rgb(var(--accent-green));
	font-weight: 400;
}

nav ul {
	width: 100%;
	margin: 0;
	padding-left: 0;
	list-style: none;
	display: none;
}

nav.footer_nav ul {
	display: block;
}

.footer_nav img.icon {
	display: none;
}

nav li {
	list-style: none;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 0 .25em;
}

.main_nav a {
	color: rgb(var(--main-dark));
	display: block;
	padding: .5em;
	text-align: center;
	text-decoration: none;
}

.main_nav a:hover,
.main_nav a:focus,
.main_nav [aria-current="page"] {
	color: rgb(var(--main-light));
	background-color: rgb(var(--main-dark));
}

.home .main_nav [aria-current="page"] {
	color: rgb(var(--main-dark));
	background-color: transparent;
}

nav img {
	vertical-align: middle;
	margin-right: .2em;
}

nav .desktop {
	display: none;
}

.menu-toggle[aria-expanded=true] + ul {
	display: block;
}

nav .open + ul ul {
	display: block;
	font-size: 1rem;
}

nav .open + ul li {
	margin: 0;
}

nav .open + ul li a {
	padding: .75em 1em;
	text-align: left;
}

button.menu-toggle {
	position: relative;
	display: inline-block;
	width: 100%;
	border: none;
	border-radius: 0;
	color: currentColor;
	background: transparent;
  	cursor: pointer;
	font-size: 1rem;
	padding: .5em;
	text-align: center;
}

button.menu-toggle[aria-expanded=true] span {
	display: inline;
	vertical-align: middle;
}

button.menu-toggle:focus {
	outline: thin dotted;
	outline-offset: -2px;
}

.menu-toggle span {
	display: block;
}

.hero {
	padding: 2em 4em 4em;
	position: relative;
	background: rgb(var(--main-dark)) url(img/hero_bg.jpg) center center no-repeat;
	background-size: cover;
}

.hero img {
	display: none;
	/* width: 100%; */
}

.hero h1,
.hero h2 {
	position: relative;
	z-index: 10;
	margin: 0;
	padding-top: 0;
	color: rgb(var(--main-light));
	font-weight: 900;
	line-height: 1.05;
}

.hero h1 {
	font-size: 4rem;
	max-width: 10ch;
}

.hero h2 {
	font-size: 2.75rem;
}

.hero_bar {
	display: block;
	width: 100%;
	height: 1.5em;
	background-color: rgb(var(--accent-green)); 
}

.post_container img {
	max-width: 300px;
}

.post-navigation,
.post-categories {
	display: inline-block;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1em;
}

.gradient_green {
	position: absolute;
	z-index: -1;
	display: block;
	width: 100%;
	height: 12em;
	background: linear-gradient(to top,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 5%,rgba(var(--accent-green),.5) 95%);
}

.gradient_blue {
	display: block;
	width: 100%;
	height: 3em;
	background: linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 5%,rgba(var(--accent-lightblue),.5) 95%);
}

footer {
	width: 100%;
	padding: 1em 0;
	color: rgb(var(--main-light));
	background-color: rgb(var(--main-dark));
	clear: both;
}

footer .inner {
	padding: 0 2em;
}

footer h2,
footer h3,
footer a {
	color: rgb(var(--main-light));
}

footer a:hover,
footer a:focus {
	color: rgb(var(--main-dark));
	background-color: rgb(var(--accent-green));
}

/* Gutenberg styling */

.wp-block-image {
	padding: 0 1em;
}

.wp-block-media-text {
	margin-bottom: 2em;
}

.wp-block-media-text h2,
.wp-block-media-text h3 {
	margin: 0 0 .75em;
}

.wp-block-columns {
	gap: 4em;
}

@media screen and (min-width: 37.5em) {
    .alignleft,img.alignleft {
        float: left;
        margin: 0 1.5em 1.5em 0;
    }
    
    .alignright,img.alignright {
        float: right;
        margin: 0 0 1.5em 1.5em;
    }
    
    .aligncenter,img.aligncenter {
        display: block;
        clear: both;
        margin: 1.5em auto;
	}
}

@media screen and (min-width: 35em) {

	header .inner {
		display: inline-block;
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-direction: row;
	}

	.logo {
		margin: 0;
		padding-top: 0;
		max-width: 150px;
	}

	main .inner {
		padding: 0 4em;
	}

	hr {
		margin: 1.5em -4em;
	}
}

@media screen and (min-width: 56.25em) {

	.logo {
		margin-bottom: -3em;
		padding-top: 0;
	} 

	.utilities {
		text-align: right;
	}

	.utilities > div {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1em;
	}

	.switcher li {
		display: inline-block;
	}

	nav {
		margin: .5em 0;
	}

	nav .inner {
		padding: 0 0 0 10%;
	}

	nav .menu-toggle,
	nav .mobile {
		display: none;
	}

	nav .desktop {
		display: flex;
	}

	nav ul {
		display: flex;
		justify-content: space-between;
	}

	nav li {
		margin: 0;
		padding: 0;
		width: auto;
	}

	nav li a {
		display: inline;
		display: flex;
		align-items: center;
	}

	nav > li:first-of-type {
		margin-left: 0;
	}

	nav > li:last-of-type {
		margin-right: 0;
	}

	main .inner {
		padding: 2em 8em;
	}

	hr {
		margin: 1.5em -8em;
	}

	.post_container {
		display: flex;
		justify-content: space-between;
		gap: 2em;
	}
	
	.post_container h2 {
		margin-top: 0;
	}

	footer .inner {
		display: inline-block;
		display: flex;
		justify-content: space-between;
	}

	footer .col {
		flex-basis: 50%;
	}

	nav.footer_nav {
		margin: 1em 0;
	}

	nav.footer_nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	nav.footer_nav li {
		display: block;
		margin: 0 .25em;
	}
}

@media screen and (min-width: 63.5em) {

	.hero {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2em;
		align-items: center;
	}

	.hero h1 {
		top: 10%;
		left: 10%;
	}

	.hero h2 {
		left: 5%;
	}

	.hero img {
		display: block;
	}
}

@media screen and (min-width: 84em) {

	header .inner {
		padding: 1em 0;
	}
}