/*
Theme Name: Northridge Vineyard Church
Theme URI: http://northridge.org.au
Author: Chris Gresham-Britt
Author URI: http://caffeinepowered.com.au
Description: Custom Theme for Northridge Vineyard Church
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northridge-vineyard
*/

/* General Styles */

* {
    box-sizing: border-box;
}

body {
    color: #555;
    font-family: 'Gotham SSm A', 'Gotham SSm B', 'Gotham', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
}

h1 {
    color: #222;
    font-size: 3rem;
    font-weight: 200;
}

h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    color: #444;
    font-size: 1.5rem;
}

h4 {
    color: #444;
    font-size: 1.3rem;
}

h5 {
    color: #444;
    font-size: 1.2rem;
}

h6 {
    color: #444;
    font-size: 1.1rem;
}

p,
ul,
li {
    font-size: 1.1rem;
    font-weight: 300;
}

a {  
    color: #2bafb9;
    text-decoration: none;
    transition: all ease 0.2s;
}

a:hover {
    color: #027782;
    transition: all ease 0.2s;
}

blockquote {
    color: #666;
    font-family: 'Lora', 'Georgia', sans-serif;
    border-left: 4px solid #2bafb9;
    margin: 2rem;
    padding-left: 2rem;
    font-style: italic;
}

blockquote p {
    color: #666;
    font-family: 'Lora', 'Georgia', sans-serif;
    font-style: italic;
}

code {
  font-family: mono;
}

hr {
    background-color: #eee;
    border: 0;
    display: block;
    height: 2px;
    margin: 2rem auto;
    width: 100%;
}

small {
  color: #ccc;
  font-family: 'Gotham', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}

strong {
    font-weight: 700;
}

a.button {
  background-color: #aaa;
  color: #fff;
  display: inline-block;
  margin-bottom: 1rem;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all ease 0.3s;
}

a.button:hover {
  opacity: 0.9;
  transition: all ease 0.3s;
}

a.button.button-blue {
  background-color: rgba(43, 175, 185, 1);
}

a.button.button-green {
  background-color: rgba(199, 199, 74, 1);
}

a.button.button-orange {
  background-color: rgba(206, 85, 4, 1);
}

/* FAQ Style Open-Close Paragraphs */

.faq-question {
  cursor: pointer;
}

.faq-question:hover {
  opacity: 0.8;
}

.faq-answer {
  display: none;
}

/* Mobile-Nav */

.mobile-nav {
    background-color: #595959;
    font-size: 1.3rem;
    height: 100vh;
    padding: 1rem 0;
    overflow: scroll;
    width: 300px;
    position: fixed;
    top: 0;
    right: -300px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}
.mobile-nav li a {
    color: #fff;
    margin: 0.5rem 1.5rem;
    display: inline-block;
    transition: all ease 0.2s;
}

.mobile-nav li a:hover {
    color: #7AD5DD;
    transition: all ease 0.2s;
}

.mobile-nav .sub-menu {
    background-color: #696969;
    display: none;
}
.mobile-nav .sub-menu li a {
    color: #eee;
    margin-left: 2rem;
    transition: all ease 0.2s;
}

.mobile-nav .sub-menu li a:hover {
    color: #7AD5DD;
    transition: all ease 0.2s;
}

.nav-toggle {
    color: #fff;
    cursor: pointer;
    display: none;
    position: relative;
}

/* Main-Nav */

.main-nav {
    background-color: #393939;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem 2rem;
    height: 95px;
    width: 100%;
}

.main-logo {
    float: left;
    width: 220px;
}

.main-logo-link:hover {
    opacity: 0.9;
    transition: all ease 0.2s;
}

.main-nav ul a {
    color: #fff;
    font-size: 0.9rem;
    transition: all ease 0.2s;
}

.main-nav ul a:hover {
    color: #7AD5DD;
    transition: all ease 0.2s;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}
.main-nav ul li {
    display: inline-block;
    padding: 18px 15px 12px 15px;
}
.main-nav ul li ul {
    padding: 0;
    max-width: 220px;
}
.main-nav ul li ul li {
    background-color: #595959;
    display: block;
    padding: 15px 15px 0 15px;
    margin-left: -15px;
}
.main-nav ul li ul li:last-child {
    padding: 15px;
}
.main-nav .sub-menu {
    position: absolute;
    top: 75px;
    padding-top: 20px;
    display: none;
}

/* Page-Header */

.page-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 960px;
    width: 95%;
}

.page-header h1 {
    color: #fff;
    display: inline-block;
    font-size: 4rem;
    line-height: 1.3;
    padding: 1rem;
    text-align: center;
    text-shadow: 0px 0px 50px rgba(0, 0, 0, 1);
}

.page-header img {
    display: inline-block;
    width: 200px;
}

.blurb {
    margin: 0 auto;
    max-width: 960px;
    width: 95%;
}

.blurb hr {
    background-color: #aaa;
    border: 0;
    height: 2px;
    margin: 0 auto;
    width: 100%;
}

.blurb p {
    color: #666;
    font-family: 'Lora', 'Georgia', sans-serif;
    font-size: 1.3rem;
    font-style: italic;
    padding: 0 4rem;
    text-align: center;
}

/* Homepage Coming Up Section */

.coming-up-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto 2rem auto;
    width: 95%;
}

.coming-up-container a:nth-child(1) {
    margin-bottom: 1rem;
}

.coming-up-container a img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.coming-up-container a img:hover {
    opacity: 0.9;
    transition: all ease 0.3s;
}

/* Homepage Connect/Grow/Serve section */

.homepage-header-container {
    margin: 0 auto;
    width: 95%;
}

.cgs-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto 4rem auto;
    width: 95%;
}

.cgs-container a {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem;
    text-align: center;
    height: 190px;
    width: 31%;
}

.cgs-container a:hover {
    color: #fff;
    opacity: 0.9;
}

.cgs-container a i {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Homepage Services Section */

.services-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 auto;
    width: 95%;
}

.services-single {
    width: 47%;
}

.services-image {
    height: 190px;
    margin: 0 auto;
    width: 100%;
}

/* Optional Quick Nav */

.quick-nav {
    border-bottom: 2px solid #eee;
    font-weight: 700;
    margin: 1rem auto;
    max-width: 600px;
    text-align: center;
}

/* Main Section */

main {
    background-color: #fff;
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    width: 95%;
}

.content {
    margin: 1rem auto;
    max-width: 600px;
} 

/* Main Content Image Treatment */

.circular {
    border-radius: 50%;
}

img.alignright { 
    float: right; margin: 0 0 1em 1em; 
}

img.alignleft { 
    float: left; margin: 0 1em 1em 0; 
}

img.aligncenter { 
    display: block; margin-left: auto; margin-right: auto; 
}

.alignright { 
    float: right; 
}

.alignleft { 
    float: left; 
}

.aligncenter { 
    display: block; margin-left: auto; margin-right: auto; 
}

/* Events Archive */

.events-archive-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    line-height: initial;
    width: 100%;
}

.event-container {
    background-color: #fafafa;
    color: #555;
    cursor: pointer;
    display: inline-block;
    height: 250px; /* Note: Height is controlled by a jQuery script, see js/script.js */
    margin: 1rem;
    max-width: 300px;
    min-width: 200px;
    position: relative;
    width: 29%;
}

.event-container:hover {
    box-shadow: none;
}

.event-calendar-icon {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 20px;
    height: 60px;
    width: 60px;
}

.event-calendar-icon-date {
    color: #fff;
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.event-calendar-icon-month {
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    margin-top: -7px;
    text-transform: uppercase;
}

.event-overview {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 80%;
}

.event-name {
    font-weight: 700;
    text-transform: uppercase;
}

.event-details {
    color: #fff;
    display: none;
    font-size: 0.9rem;
    position: absolute;
    left: 0;
    top: 0;
    height: 250px; /* Note: Height is controlled by a jQuery script, see js/script.js */
    width: 100%; 
    text-align: center;
    opacity: 0.9;
}

.event-details p {
    padding: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Event Page */

.event-single-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.event-meta {
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-width: 220px;
    padding: 1rem;
    text-align: center;
}

.event-meta p {
    text-align: center;
}

.event-content {
    padding-left: 2rem;
}

.event-rego-button {
    border-radius: 2px;
    color: #fff;
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 3rem;
    text-transform: uppercase;
    transition: all ease 0.3s;
}

.event-rego-button:hover {
    color: #fff;
    opacity: 0.85;
    transition: all ease 0.3s;
}

/* Resources Pages */

.resources-list {
    background-color: #fff;
    border-collapse: collapse;
    width: 100%;
}

.resources-list tr {
    border-bottom: 1px solid #eee;
}

.resources-list td {
    padding: 1rem 0.5rem;
}

.resources-list-type {
    text-align: center;
    width: 12%;
}
.resources-list-size {
    text-align: center;
    width: 16%;
}
.resources-list-lock {
    text-align: center;
    width: 12%;
}

/* Talks Section */

.talks-container {
    margin: 0 auto;
    max-width: 600px;
}

.single-talk {
    border-top: 2px solid #eee;
    display: flex;
    padding-top: 2rem;
    padding-bottom: 2rem;
    transition: all ease 0.3s;
}

.talk-actions {
    text-transform: uppercase;
    margin-right: 2rem;
    min-width: 200px;
}

.talk-actions i {
    margin-right: 12px;
}

.talk-actions a {
    background-color: #eee;
    box-shadow: 0;
    color: #333;
    display: block;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding: 0.7rem;
    padding-bottom: 0.5rem;
    transition: all ease 0.3s;
}

.talk-actions a:hover {
    background-color: #ccc;
    cursor: pointer;
    transition: all ease 0.3s;
}

.show-more-talks {
    background-color: #444;
    color: #fff;
    display: block;
    margin: 1rem auto;
    padding: 0.4rem 0.7rem 0.2rem 0.7rem;
    text-align: center;
    text-transform: uppercase;
    transition: all ease 0.3s;
}

.show-more-talks:hover {
    cursor: pointer;
    opacity: 0.8;
    transition: all ease 0.3s;
}

/* Contact Page */

.contact-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.contact-details,
.contact-form {
    padding: 0 1rem;
    width: 48%;
}

.contact-form p {
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-map {
    height: 300px;
    width: 100%;
}

input,
textarea {
    border: 1px solid #ccc;
    color: #555;
    font-size: 0.9rem;
    font-weight: 300;
    width: 90%;
    padding: 0.3rem;
    resize: none;
}

input[type='submit'] {
    background-color: #eee;
    padding: 0.5rem 2rem;
}

input[type='submit']:hover {
    background-color: #ddd;
    cursor: pointer;
}

div.wpcf7-response-output {
    margin-left: 0;
    width: 90%;
}

/* Footer Section */

footer {
    background-color: #393939;
}

footer .inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    width: 95%;
}

.find-us,
.contact-us,
.service-times {
    display: inline-block;
    width: 30%;
}

footer h4 {
    color: #fff;
    border-bottom: 3px solid #fff;
}

footer p,
footer strong {
    color: #fff;
}

/* Back to Top Button */

.back-top-button {
    background-color: rgba(0,0,0,0.5);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    color: #fff;
    display: none;
    font-size: 16px;
    font-weight: 300;
    padding: 6px 12px;
    position: fixed;
    right: 10px;
    bottom: 0px;
    text-align: center;
    text-transform: uppercase;
    transition: all ease 0.1s;
}

.back-top-button:hover {
    background-color: rgba(0,0,0,0.6);
    cursor: pointer;
    padding-bottom: 10px;
    transition: all ease 0.1s;
}

/* Media Queries */

@media ( max-width: 1050px ) {
    
    .main-nav .menu-main-menu-container {
        display: none;
    }
    
    .nav-toggle {
        display: inline-block;
    }
    
}

@media ( max-width: 850px ) {
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .blurb p {
        font-size: 1.2rem;
        padding: 0 2rem;
    }
    
    .cgs-container a {
        height: 150px;
    }
    
    .event-container {
        width: 40%;
    }
    
    .event-single-container {
        flex-direction: column;
    }
    
    .event-meta {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-around;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .event-meta p {
        width: 25%;
    }
    
    .event-content {
        padding: 0;
    }
    
    .single-talk {
        flex-direction: column-reverse;
    }
    
    .talk-actions a {
        display: inline-block;
    }
    
    footer h4 {
        font-size: 1.2rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }

@media ( max-width: 600px ) {
    
    .blurb p {
        font-size: 1.1rem;
        padding: 0 1rem;
        line-height: 1.5;
    }
    
    .cgs-container {
        flex-direction: column;
    }
    
    .cgs-container a {
        flex-direction: row-reverse;
        height: 110px;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .cgs-container a i {
        display: none;
    }
    
    .services-container {
        flex-direction: column;
    }
    
    .services-single {
        width: 100%;
    }
    
    .event-container {
        width: 90%;
    }
    
    .event-meta p {
        font-size: 1rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-details,
    .contact-form {
        width: 100%;
    }
    
    footer .inner {
        flex-direction: column;
    }
    
    footer .inner div {
        width: 100%;
    }
    
    footer h4 {
        font-size: 1.3rem;
    }
    
    footer p {
        font-size: 1.1rem;
    }
    
}
    
@media ( max-width: 400px ) {
    
    h2 {
        font-size: 1.8rem;
    } 
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .main-logo {
        width: 150px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    main {
        overflow: scroll;
    }
    
    .cgs-container a {
        font-size: 1rem;
        height: 90px;
    }
    
    .services-image {
        height: 140px;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .event-meta p {
        width: 100%;
    }
    
}   