/* -------------------------------------
TABLE OF CONTENTS:
Fonts
Variables
Base Styles
Helper Classes
Site Styles
Navigation & Menus
Entry Styles
Page Styles
------------------------------------- */

/* Fonts
============================================================================= */

@font-face {
  font-family: 'Segoe UI';
  font-style: normal;
  font-weight: 200;
  src: local('Segoe UI Light');
}

@font-face {
  font-family: 'Segoe UI';
  font-style: normal;
  font-weight: normal;
  src: local('Segoe UI');
}

@font-face {
  font-family: 'Segoe UI';
  font-style: italic;
  font-weight: normal;
  src: local('Segoe UI Italic');
}

@font-face {
  font-family: 'Segoe UI';
  font-style: normal;
  font-weight: bold;
  src: local('Segoe UI Semibold');
}

@font-face {
  font-family: 'Segoe UI';
  font-style: italic;
  font-weight: bold;
  src: local('Segoe UI Semibold');
}

/* Variables
============================================================================= */

:root {
  --global--font-size-sm: 0.875rem;
  --global--font-size-base: 1rem;
  --global--font-size-md: 1.125rem;
  --global--font-size-lg: 1.25rem;
  --global--font-size-hg: 1.5rem;
  --global--font-size-h3: 2rem;
  --global--font-size-h2: 2.5rem;
  --global--font-size-h1: 3rem;
}

/* Base Styles
============================================================================= */

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

html {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure {
  margin: 0;
  padding: 0;
}

body {
  font-family: "avenir", "segoe ui", "roboto", sans-serif;
  font-weight: normal;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--global--font-size-h1); }
h2 { font-size: var(--global--font-size-h2); }
h3 { font-size: var(--global--font-size-h3); }
h4 { font-size: var(--global--font-size-hg); }
h5 { font-size: var(--global--font-size-lg); }
h6 { font-size: var(--global--font-size-md); }

p,
blockquote {
  margin-bottom: 1rem;
}

a {
  color: steelblue;
}

ul,
ol {
  padding-left: 1rem;
}

strong {
  font-weight: bold;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Helper Classes
============================================================================= */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

ul.hanging,
ol.hanging {
  padding: 0;
}

img.is-rounded {
  border-radius: 50%;
}

blockquote.verse {
  display: block;
  border-left: unset;
  padding-left: 0;
}
blockquote.verse cite {
  display: block;
  text-align: right;
  margin-top: -0.5rem;
  color: unset;
  font-size: unset;
}
blockquote.verse cite::before {
  content: "\2013";
  margin-right: 0.375rem;
}

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

.has-font-small { font-size: var(--global--font-size-sm); }
.has-font-normal { font-size: var(--global--font-size-base); }
.has-font-medium { font-size: var(--global--font-size-md); }
.has-font-large { font-size: var(--global--font-size-lg); }
.has-font-huge { font-size: var(--global--font-size-hg); }

/* Site Styles
============================================================================= */

#site-logo {
  max-width: 240px;
}

#site-content {
  background-color: #f9f9f9;
}

#site-banner {
  padding: 1rem;
  background-color: crimson;
  color: white;
}
#site-banner p {
  margin-bottom: 0;
}
#site-banner a {
  color: white;
}

.header-inner,
.footer-inner {
  padding: 2rem;
}

/* Navigation & Menus
============================================================================= */

.menu {
  padding: 0;
  margin: 0;
  list-style: none;
}
.menu-item a {
  display: block;
  padding: 0.25rem;
  color: black;
  text-decoration: none;
}
.menu-item a:hover {
  text-decoration: underline;
}

.menu-item-has-children {
  border: 1px solid transparent;
}
.menu-item-has-children .icon-chevron-up {
  display: none;
}
.sub-menu {
  display: none;
  z-index: 10;
}

.menu-item-show {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}
.menu-item-show .sub-menu {
  display: flex;
  flex-direction: column;
}
.menu-item-show .icon-chevron-down {
  display: none;
}
.menu-item-show .icon-chevron-up {
  display: block;
}

.icon-chevron {
  float: right;
  margin-left: 0.25rem;
}

.icon-external-link {
  display: inline-block;
  width: 12px;
}

.nav-main {
  margin-top: 2rem;
}

@media only screen and (min-width: 40em) {
  .menu-item-show {
    border: 1px solid black;
  }

  .menu-item-has-children .sub-menu {
    border: 1px solid black;
    background: white;
    position: absolute;
    margin: -1px;
  }

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

@media only screen and (min-width: 56em) {
  #site-navigation {
    display: flex;
    justify-content: space-between;
  }

  .nav-main {
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
  }

  .menu-item {
    margin: 0rem 0.5rem;
  }
}

.no-js .menu-item-has-children:hover {
  border: 1px solid black;
}

.no-js .menu-item-has-children:hover .sub-menu {
  position: absolute;
  display: flex;
  flex-direction: column;
}

/* Entry Styles
============================================================================= */

.entry-header {
  padding-top: 4rem;
  margin-bottom: 5rem;
}

.entry-content > *:first-child,
.entry-content > *:last-child {
  margin-bottom: 0rem;
}

.entry-content > *:not(.has-background):last-child {
  margin-bottom: 4rem;
}

.entry-content > *:not(.alignwide):not(.alignfull) {
  max-width: 40rem;
  width: calc(100% - 4rem);
  margin-left: auto;
  margin-right: auto;
}

.container-inner > *:not(.alignwide):not(.alignfull) {
  max-width: 40rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  position: relative;
  max-width: 60rem;
  width: calc(100% - 4rem);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  position: relative;
  max-width: 100vw;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Page Styles
============================================================================= */

.columns {
  display: flex;
  flex-direction: column;
}

@media only screen and (min-width: 50em) {
  .columns {
    flex-direction: row;
  }
  .col.is-one-third {
    flex-basis: 33.33%;
  }
  .col.is-two-thirds {
    flex-basis: 66.66%;
  }
  .col.is-two-fifths {
    flex-basis: 20%;
  }
  .col.is-three-fifths {
    flex-basis: 30%;
  }
  .col.is-half {
    flex-basis: 50%;
  }
}

.hero-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.hero-image,
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  z-index: 1;
}

/* Page: home
===================================== */

.page-home h1 {
  text-transform: uppercase;
}

.home-introduction .hero-content {
  max-width: 35rem;
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.3);
}

.home-announcement .hero-content {
  max-width: 40em;
}

.home-schedule {
  background-color: #e6d8d7;
}
.home-schedule .hero-content {
  padding: 5rem 0rem;
}
.home-schedule .hero-overlay {
  background-color: black;
  opacity: 0.5;
}
.home-schedule .hero-content {
  color: white;
}
.home-schedule-content .columns {
  margin: 2rem 0rem;
}

.home-contact {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.home-contact h2 {
  margin-top: 1.5rem;
}
.home-contact .columns {
  margin-top: 2rem;
}

@media only screen and (min-width: 40em) {
  .home-introduction .hero-banner {
    justify-content: flex-end;
  }
  .home-introduction .hero-content {
    padding: 8rem 6rem;
    margin: 3rem;
  }
  .home-schedule-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .home-schedule .hero-content {
    padding: 11rem 0rem;
  }
  .home-contact .columns {
    margin-top: 3rem;
  } 
}

@media only screen and (min-width: 110em) {
  .home-introduction .hero-banner {
    justify-content: center;
    padding-left: 60%;
  }
}

/* Page: about
===================================== */

.page-about h2 {
  margin-top: 3rem;
}

/* Page: team
===================================== */

.team-member {
  margin-top: 4rem;
  margin-bottom: 4rem;
}
.team-member h2 {
  margin-bottom: 0.1em;
}
.team-member img {
  max-width: 200px;
  margin-bottom: 2rem;
}

@media only screen and (min-width: 50em) {
  .team-member .col:nth-child(2) {
    margin-left: 3rem;
  }
}

/* Page: fellowship
===================================== */

.fellowship {
  margin-bottom: 4rem;
}

/* Page: lighthousekids
===================================== */

.page-lighthousekids .entry-header {
  padding-bottom: 2rem;
}
.page-lighthousekids h1 {
  max-width: 320px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.lighthousekids-ministry {
  padding: 4rem 2rem;
  background-color: white;
}

.lighthousekids-church {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #e6d8d9;
}

.flexgrid .grid-item {
  margin-top: 4rem;
}
.flexgrid span {
  display: block;
}

@media only screen and (min-width: 40em) {
  .lighthousekids-church {
    padding-bottom: 2rem;
  }

  .flexgrid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .flexgrid .grid-item {
    width: calc(50% - 2rem);
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .flexgrid .item2 {
    margin-top: 8.5rem;
  }
  .flexgrid .item3 {
    margin-top: -6.25rem;
  }
  .flexgrid .item4 {
    margin-top: 3rem;
  }
}
