/*
Theme Name: Charlton
Author: GreenGraphics
Author URI: https://www.greengraphics.com.au
Description: Base theme
Version: 1.0.0
Text Domain: ggstyle
*/

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
*,
*:before,
*:after {
    /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}
body {
    background: #fff; /* Fallback for when there is no custom background color defined. */
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
}
blockquote,
q {
    quotes: '' '';
}
hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}
ul,
ol {
    margin: 0 0 1.5em 3em;
}
ul {
    list-style: disc;
}
ol {
    list-style: decimal;
}
li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}
dt {
    font-weight: bold;
}
dd {
    margin: 0 1.5em 1.5em;
}
img {
    height: auto; /* Make sure images are scaled correctly. */
    max-width: 100%; /* Adhere to container width. */
}
table {
    margin: 0 0 1.5em;
    width: 100%;
}
dfn,
cite,
em,
i {
    font-style: italic;
}
blockquote {
    margin: 0 3.5em 1.5em 1.5em;
    font-size: 1.1rem;
    font-style: italic;
}
address {
    margin: 0 0 1.5em;
}
pre {
    background: #eee;
    font-family: 'Courier 10 Pitch', Courier, monospace;
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}
code,
kbd,
tt,
var {
    font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;
    font-size: 15px;
    font-size: 0.9375rem;
}
abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}
mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
    overflow: hidden;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    float: left;
    width: 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    float: right;
    text-align: right;
    width: 50%;
}

figure {
	margin: 0;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.6em 1em 0.4em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
input[type='button']:hover,
input[type='reset']:hover,
input[type='submit']:hover {
    border-color: #ccc #bbb #aaa;
}
button:focus,
input[type='button']:focus,
input[type='reset']:focus,
input[type='submit']:focus,
button:active,
input[type='button']:active,
input[type='reset']:active,
input[type='submit']:active {
    border-color: #aaa #bbb #bbb;
}
input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
input[type='range'],
input[type='date'],
input[type='month'],
input[type='week'],
input[type='time'],
input[type='datetime'],
input[type='datetime-local'],
input[type='color'],
textarea {
    color: #666;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}
select {
    border: 1px solid #ccc;
}
input[type='text']:focus,
input[type='email']:focus,
input[type='url']:focus,
input[type='password']:focus,
input[type='search']:focus,
input[type='number']:focus,
input[type='tel']:focus,
input[type='range']:focus,
input[type='date']:focus,
input[type='month']:focus,
input[type='week']:focus,
input[type='time']:focus,
input[type='datetime']:focus,
input[type='datetime-local']:focus,
input[type='color']:focus,
textarea:focus {
    color: #111;
}
input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
input[type='range'],
input[type='date'],
input[type='month'],
input[type='week'],
input[type='time'],
input[type='datetime'],
input[type='datetime-local'],
input[type='color'] {
    padding: 3px;
}
textarea {
    padding-left: 3px;
    width: 100%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text,
.sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
.screen-reader-text:focus,
.sr-only:focus {
    background-color: #f1f1f1;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
} /* Do not show the outline on the skip link target. */
#content[tabindex='-1']:focus {
    outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}
.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.comment-content:before,
.comment-content:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
    content: '';
    display: table;
    table-layout: fixed;
}
.clear:after,
.comment-content:after,
.site-content:after,
.site-footer:after {
    clear: both;
}

/*--------------------------------------------------------------
# Weird bits
--------------------------------------------------------------*/
.widget {
    margin: 0 0 1.5em;
} /* Make sure select elements fit in widgets. */
.widget select {
    max-width: 100%;
}
.blog .format-aside .page-title,
.archive .format-aside .page-title {
    display: none;
}

.comment-content a {
    /* word-wrap: break-word; */
}
.bypostauthor {
    display: block;
} /* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */ .infinite-scroll.neverending .site-footer {
    /* Theme Footer (when set to scrolling) */
    display: none;
} /* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
    display: block;
}
.page-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
} /* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

svg {
    display: block;
    height: 100%;
    width: 100%;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}
.wp-caption img[class*='wp-image-'] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}
.wp-caption-text {
    text-align: center;
}

.sticky {
    display: block;
}

.page-content {
    margin: 1em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body {
	color: #1b1b1b;
	font-family: open-sans, sans-serif;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: gitan-latin, sans-serif;
    clear: both;
    line-height: 1.65;
}

h1,
h2,
h3 {font-weight: 400;line-height: 1.2;}

h1 {font-size: 2.2em;}
h2 {font-size: 2em;}
h3 {font-size: 1.8em;}

h1,
h2 {
    color: var(--color1);
    margin-bottom: 0.6em;
}

p {
    /* margin-bottom: 1.5em; */
}

.slider-text {
    font-family: gitan-latin, sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 3em;
    line-height: 1.2;
    padding: 0 10%;
}

.slider-text h2,
.slider-text p {
    margin: 0;
    max-width: 480px;
}

.home .slide .slider-text {
    display: none;
}

.home .slider-wrap > .slider-text h2,
.home .slider-wrap > .slider-text p {
    max-width: none;
}

@media (max-width: 767px) {
    .slider-wrap .slider,
    .slider-wrap .slick-track {
        height: 400px;
    }

    .slider-wrap .slider-text {
        top: 5%;
        transform: translate(-50%, 0);
        padding: 0 5%;
        text-shadow: 1px 1px 1rem black;
    }
}

@media (min-width: 1660px) {
    .slider-wrap .slider-text {
        padding: 0;
    }
}


/*--------------------------------------------------------------
## Colors
--------------------------------------------------------------*/
:root {
    --color1: #f44639;
    --color2: #ffa457;
    --color3: #bad18e;
    --color4: #00aa7b;
    --color5: #333333;
    --color6: #cccccc;
}

/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
    color: var(--color1);
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    color: var(--color2);
    text-decoration: underline;
}

a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}

.icon {
    display: inline-block;
    width: 2rem;
    flex: none;
}
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/

nav a {
    text-transform: capitalize;
    font-weight: normal;
}

nav li {
    padding: 0;
}

nav li::after {
    content: none;
}

nav a {
    padding: 1.5rem;
}

.top-navigation {
    display: none;
}

@media (min-width: 768px) {
    .top-navigation {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
}

.top-navigation ul li a {
    padding: 16px 24px 18px;
}

#top nav.top-navigation ul li a:hover {
	    border-color: #333;
	    color: var(--color4);
    }

.top-navigation .search-toggle {
    margin-left: 1rem;
    padding: 24px 0.5rem 14px;
}

.top-navigation .search-toggle .icon {
    width: 1.5rem;
}

.main-navigation {
    background-color: #ccc;
    padding: 6rem 2rem;
}

.main-navigation a {
    line-height: 1.25;
    font-size: 1.75em;
    font-weight: 700;
    padding: 0.75rem 0;
    /* color: var(--color1); */
    border-bottom: none;
    text-align: center;
}

.menu-toggle.toggled {
    top: auto;
    right: 2rem;
}

@media (min-width: 768px) {
    .main-navigation {
        background-color: white;
        margin-bottom: -8px;
        padding: 0;
    }
    .main-navigation li {
    }
    .main-navigation li a {
        padding: 1rem 1.2rem 2rem;
        border-bottom: 0.5rem solid var(--color1);
    }

    .main-navigation li:nth-child(2n) a {
        border-color: var(--color2);
    }
    .main-navigation li:nth-child(3n) a {
        border-color: var(--color3);
    }
    .main-navigation li:nth-child(4n) a {
        border-color: var(--color4);
    }

    .main-navigation li a:hover {
        border-color: var(--color5);
    }

    .main-navigation .current-menu-item a {
        border-bottom-width: 1rem;
        padding-bottom: 1.5rem;
    } 
}

@media (min-width: 1025px) {
    .main-navigation a {
        font-size: 1rem;
    }
    
    .main-navigation li.mobility {
	    display: none;
    }
    
}

@media (max-width: 1024px) {
    .main-navigation a:hover {
        background-color: white;
    }
    
}


@media (min-width: 1200px) {
    .main-navigation a {
        font-size: 1.35rem;
    }
}

.side-navigation {
    /* margin-top: 2rem; */
    /* margin-bottom: 2rem; */
}

.side-navigation li {
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.side-navigation li:nth-child(2n) a {
    background-color: var(--color3);
}

.side-navigation li:nth-child(3n) a {
    background-color: var(--color4);
}

.calbutt {
	width: 30%;
	float: right;
	display: flex;
}

.side-navigation a, .calbutt a {
    background-color: var(--color2);
    color: white;
    /* white-space: nowrap; */
    display: flex;
    align-items: center;
    width: 100%;
    text-transform: uppercase;
    border-bottom: none;
    font-size: 1.1em;
    text-align: left;
}

.calbutt a {
	background-color: var(--color3);
}

.calbutt a:hover {
	text-decoration: none;
}

.side-navigation li a:hover, .calbutt a:hover {
    background-color: var(--color1);
    color: white;
}

.side-navigation .icon, .calbutt .icon {
    margin-right: 1rem;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    flex: 0 0 auto;
}
.side-navigation .icon svg path, .calbutt .icon svg path {
    fill: white;
}

.side-navigation svg, .calbutt svg {
    height: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .side-navigation a, .calbutt a {
        font-size: 0.9em;
        padding: 1rem 0.5rem;
    }
}
@media (min-width: 1024px) {
    .side-navigation a, .calbutt {
        font-size: 1.2em;
        padding: 1.5rem;
    }
}

/*--------------------------------------------------------------
## Containers
--------------------------------------------------------------*/
.container,
.site-main,
.top-navigation,
.header-bottom {
    max-width: 100%;
    position: relative;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

@media (min-width: 88rem) {
    .container,
    .site-main,
    .top-navigation {
        max-width: 100rem;
        margin-left: auto;
        margin-right: auto;
    }
}


/*--------------------------------------------------------------
## Custom CSS
--------------------------------------------------------------*/
/* Make footer sit at the bottom */
#page {
   min-height: 100vh;
   display: flex;
   flex-flow: column;
}
body.admin-bar #page {
    min-height: calc(100vh - 32px);
    display: flex;
    flex-flow: column;
    overflow: hidden;
}

#top {
    background-color: #333;
    color: white;
}
#top a {
    color: white;
}
#top svg path {
    fill: white;
}


.site-header {
    position: relative;
    background-color: white;
    border-bottom: 8px solid #ccc;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
}

.site-header .main-navigation {
    margin-left: auto;
}

.site-header .menu-toggle {
}

@media (min-width: 768px) {
    .site-header {
        padding-top: 4rem;
    }
}

@media (min-width: 768px) {
    .site-header {
        padding-bottom: 0;
    }
}

.site-branding {
    margin-left: -4px;
    margin-top: -8px;
    margin-right: auto;
}

.site-title {
    margin: 0;
}


.site-logo {
    text-transform: uppercase;
    font-weight: 700;
    font-family: gitan-latin, sans-serif;
    color: black;
    font-size: 3rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.site-logo:hover,
.site-logo:focus {
    color: black;
    text-decoration: none;
}

.site-logo .icon {
    height: 2.25rem;
    margin-right: 1rem;
}

.site-logo .icon path {
    fill: var(--color1);
}

.menu-toggle-inner,
.menu-toggle-inner::before,
.menu-toggle-inner::after {
    background-color: #000;
}

.site-main {
    flex: 1 auto;
    margin-bottom: 4rem;
}

@media (max-width: 767px) {
    .slider .slick-arrow {
        bottom: 0;
        top: auto;
        height: 70px;
        transform: none;
    }
}

.slider .slick-arrow {
    background-color: var(--color1);
}

.page-banner {
    display: flex;
    overflow: hidden;
    height: 290px;
}

.page-banner img {
    display: block;
    max-width: none;
    margin: auto;
    object-fit: cover;
    height: 100%;
    width: 100%;
}


@media (max-width: 767px) {
    .page-banner {
        height: 200px;
    }
}

.site-content {
}

.content-area {
}

.page-header {
    margin-bottom: 2rem;
}

.page-header .page-title {
    margin: 0;
}

.site-main > .page-header,
.site-main > article.page > .page-header {
    position: relative;
    padding: 4rem 0;
    width: 100%;
}
.site-main > article.page > .page-header .page-title,
.site-main > .page-header .page-title {
    color: white;
    margin: 0;
    font-size: 3em;
}
.site-main > article.page > .page-header::before,
.site-main > .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    z-index: -1;
    background-color: var(--color2);
    left: 50%;
    transform: translate(-50%, 0);
}

.back-to {
    font-size: 1.2em;
}

.term-title {
    font-size: 3em;
}

.page-content .slider-wrap {
    margin-right: calc( 50% - 50vw);
    margin-left: calc( 50% - 50vw);
}
.page-content .slider-wrap:last-child {
    margin-top: 4rem;
    /* margin-bottom: -6rem; */
}

.page-content p {
    font-size: 1.2em;
}

.post-thumb {
    margin-bottom: 1em;
}
body:not(.blog) .post-wrap .post-thumb {
    float: right;
    margin-left: 1em;
    width: 50%;
}

.post-wrap {
    display: flex;
    flex-flow: wrap;
}

.post-wrap > article {
    margin-top: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.post-wrap .page-title {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.3em;
    margin-top: 0;
}

.post-wrap .page-title a {
    color: white;
    display: block;
    padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
    .post-wrap > article {
        margin-right: 2rem;
        margin-bottom: 3rem;
        width: calc(33.33% - 2rem);
    }
}

.post-thumb img {
    display: block;
}

.widget-area {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .widget-area {
        margin-top: 0;
    }
}

.page-id-10 .wp-block-ugb-button.ugb-main-block {
	margin-top: 5px;
	margin-bottom: 5px;
	font-size: 130%;
}

.readmore {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
}

.site-footer {
    color: white;
    background-color: #565656;
    font-size: 0.8rem;
}

.site-footer > .container {
	display: flex;
	flex-flow: wrap;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.site-footer > .container > div {
	margin-right: 1em;
	flex: 1 auto;
}

.site-footer h4 {
	margin-top: 0;
}

.site-footer p {
	margin-top: 0;
	margin-bottom: 0;
}

.site-footer .site-info {
	padding: 1em 0;
	background-color: orange;
	/* margin-top: 2rem; */
}

@media (min-width: 60rem) {
	.site-footer .site-info .container {
		display: flex;
	}
	.site-credits {
		text-align: right;
		margin-left: auto;
	}
}

.pre-footer {
    background-color: var(--color5);
    color: white;
}

.pre-footer .box {
    padding: 1rem;
    margin: 4rem 1rem;
    border: 1px solid white;
}

.pre-footer h4 {
    margin-top: 0;
    text-transform: uppercase;
    margin-bottom: 1em;
    position: relative;
    padding-left: 2.5rem;
}

.pre-footer h4::before {
    content: '';
    display: inline-block;
    height: 1.5rem;
    width: 1.5rem;
    background-color: white;
    margin-right: 1rem;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}

.pre-footer .box:nth-child(2n) h4::before {
    background-color: var(--color1);
}

.pre-footer .box:nth-child(3n) h4::before {
    background-color: var(--color4);
}

.pre-footer p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .pre-footer .container {
        display: flex;
    }
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-shadow: 2px 2px 2px rgba(44, 46, 46, 0.9);
}

.footer-navigation {
    text-align: right;
}

.footer-navigation .menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer-navigation li {
    display: inline-block;
}

.footer-navigation a {
    display: block;
    font-size: 15px;
    margin: 0 0 0 16px;
    padding: 0;
}

@media screen and (max-width: 1064px) {
    .container {
        max-width: none;
        padding: 0 32px;
    }
}

/*****

## Layout Mock

*****/
body::after {
    /* content: ''; */
    position: fixed;
    top: 0;
    background-image: url(src/images/mock.jpg);
    height: 100%;
    width: 100%;
    z-index: 10000;
    pointer-events: none;
    filter: opacity(0.625) hue-rotate(90deg);
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
}
body.admin-bar::after {
    top: 32px;
    background-position: center 32px;
}

body.directory::after {
    background-image: url(src/images/mock2.jpg);
}

body.tax-business_category::after {
    background-image: url(src/images/mock3.jpg);
}

.home .site-main {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .home .site-main {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }
}

.home .site-main > article.page > .page-header {
    padding: 0;
}
.home .site-main > article.page > .page-header::before {
    content: none;
}
.home .site-main > article.page > .page-header .page-title {
    font-size: 3.2em;
    color: var(--color1);
}

@media (min-width: 768px) {

    .home .site-main,
    body.page .site-main {
        display: flex;
        flex-flow: wrap;
        align-items: flex-start;
        /* margin-bottom: 4rem; */
    }

    .home .site-main > .page,
    body.page .site-main > .page {
        width: calc(66.667% - 2rem);
        flex: 1 auto;
    }

    .home .widget-area,
    body.page .widget-area {
        margin-left: 2rem;
        width: 33%;
    }

}

.directory-list .term-list {
    list-style-type: none;
    padding-left: 0;
    margin: 2rem 0;
    /* display: flex;
    flex-flow: wrap; */
}



.term-list li {
    /* width: 50%; */
}

ul.term-list {
	-webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
}

@media screen and (max-width: 950px) {
	ul.term-list {
	-webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}
}

@media screen and (max-width: 650px) {
	ul.term-list {
	-webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
}
}

@media (min-width: 768px) {
    .term-list li {
        /* flex: 1 33.33%; */
    }
    
    .term-list li:last-of-type {
	    /* margin-left: auto; */
    }
}

.term-list li a {
    display: inline-block;
    padding: 1rem;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
    font-size: 1.45em;
    line-height: 1.2;
    /* word-break: break-word; */
}

.term-list li a:hover {
    background-color: #f44639;
    color: white;
}


.business-details ul li {
    /* word-break: break-all; */
}
