/**
 *  Theme Name: One Little Project
 *  Theme URI: https://www.oncecoupled.com
 *
 *  Description: Custom Genesis child theme. Made with love!
 *  Tags: custom-made, genesis, child-theme
 *
 *  Author: Once Coupled
 *  Author URI: https://www.oncecoupled.com
 *
 *  Version: 1.0.0
 *  Template: genesis
 *  Template Version: 3.0.2
 *
 *  Text Domain: once-coupled-one-little-project
 *  License: All rights reserved.
 *
 *  Notes: this complements our `defaults` file and sets up
 *  a base for us by overwriting some fonts & colors #3
 */

/* ================================
[ Common ]
================================ */

/* ---------- [ Table of Contents ] ---------- */

/**
 * Notes
 * - TOC (you are here)
 *
 * Navigation
 * - Nav: Footer x3
 * - Nav: Header
 * - Nav: Primary
 * - Nav: Privacy
 *
 * Containers
 *
 * Sections
 * - Before Header
 * - Header
 * - Site Footer
 *
 * Content
 * - Breadcrumbs
 * - Titles
 * - Descriptions
 * - Entries
 */

/* ================================
[ Navigation ]
================================ */

/* ---------- [ Nav: Footer x3 ] ---------- */

.footer-menu .menu {
  display: flex;
  flex-direction: column;
}

.footer-menu .menu-item {
  margin-bottom: 8px;
  font-size: 16px;
}

.footer-menu .menu a {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

@media (hover: hover) {
  .footer-menu .menu-item a:hover {
    text-decoration: underline;
  }
}

/* ---------- [ Nav: Header ] ---------- */

@media (min-width: 1024px) {
  .nav-header {
    position: absolute;
    top: 0;
    right: 0;
  }

  .nav-header .menu-item {
    text-transform: lowercase;
    font-weight: 400;
    letter-spacing: 0;
    font-size: 16px;
    line-height: 40px;
    margin: 0 8px;
  }

  .nav-header .menu > .menu-item:first-child {
    margin-left: 0;
  }

  .nav-header .menu > .menu-item:last-child {
    margin-right: 0;
  }

  .nav-header .menu-item a {
    padding: 0;
    border-bottom: 1px solid transparent;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .nav-header .menu-item a:hover {
    border-bottom-color: #000;
  }
}

/* ---------- [ Nav: Primary ] ---------- */

.nav-primary {
  position: fixed;
  z-index: 9998;
  top: 48px;
  left: 0;
  width: 100%;
  display: none;
  overflow-y: scroll;
  /* height of sticky header */
  background: #6dc8c0;
  height: 100vh;
}

@media (min-width: 1024px) {
  .nav-primary {
    position: relative;
    z-index: auto;
    height: auto;
    top: auto;
    display: block;
    overflow: visible;
    background: transparent;
    height: auto;
    margin: 8px 0 0 40px;
  }
}

.admin-bar .nav-primary {
  /* height of admin bar (46px) + sticky header */
  top: 94px;
  height: calc(100% - 94px);
}

@media (min-width: 783px) {
  .admin-bar .nav-primary {
    /* height of admin bar (32px) + sticky header */
    top: 80px;
    height: calc(100% - 80px);
  }
}

@media (min-width: 1024px) {
  .admin-bar .nav-primary {
    top: 0;
    height: auto;
  }
}

@media (max-width: 1023px) {
  .nav-primary .wrap {
    max-width: 100%;
  }
}

.nav-primary .menu {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .nav-primary .menu {
    flex-direction: row;
    align-items: center;
  }
}

/* [ Primary Nav - Menu Items ] */

.nav-primary .menu-item {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #90d4ce;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .nav-primary .menu-item {
    border: 0;
    flex: 1 1 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0;
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .nav-primary .menu-item {
    font-size: 18px;
  }
}

.nav-primary .menu-item.hide-on-mobile,
.nav-primary .menu-item:last-of-type {
  border-bottom: 0;
}

.nav-primary .menu-item.hide-on-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .nav-primary .menu-item.hide-on-mobile {
    display: block;
  }

  .nav-primary .menu-item.visible-on-mobile {
    display: none;
  }
}

.nav-primary .menu-item > a {
  padding: 0 60px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-primary .menu-item > a {
    padding: 8px;
    border-bottom: 2px solid transparent;
    min-height: auto;
  }
}

@media (hover: hover) {
  .nav-primary .menu-primary > .menu-item > a:hover {
    border-bottom-color: #c9187c;
  }
}

/* [ Primary Nav - Sub-menu ] */

.nav-primary .sub-menu-toggle {
  display: block;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 0;
  right: 12px;
  background: transparent;
}

.nav-primary .sub-menu-toggle.activated .icon-font::before {
  margin-left: 0.5em;
}

@media (min-width: 1024px) {
  .nav-primary .sub-menu-toggle {
    display: none;
  }
}

.nav-primary .sub-menu {
  display: none;
}

.nav-primary .sub-menu .menu-item {
  border-bottom-color: #6dc8c0;
}

.nav-primary .sub-menu .menu-item:last-of-type {
  border-bottom: 0;
}

@media (hover: hover) {
  .nav-primary .sub-menu a:hover,
  .nav-primary .sub-menu .sub-menu a:hover {
    color: #fff;
    background-color: #454546;
  }
}

/* [ Containers ] */

@media (min-width: 1024px) {
  .nav-primary .mobile-nav-container {
    display: none;
  }
}

.nav-primary .search-container {
  order: 1;
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .nav-primary .search-container {
    margin-top: -1px;
    order: initial;
  }

  .nav-primary .social-container {
    margin-left: 8px;
    align-items: flex-end;
  }
}

/* [ Sticky ] */

@media screen and (min-width: 1024px) {
  .desktop-sticky {
    position: sticky;
    z-index: 99999;
    top: 0;
    background: #fff;
    padding: 16px 0;
    margin: 16px 0 32px;
  }

  #wpadminbar {
    z-index: 999999;
  }

  .admin-bar .desktop-sticky {
    top: 32px;
  }

  .desktop-sticky > .wrap {
    display: flex;
    max-width: 1020px;
  }
}

@media (min-width: 1200px) {
  .desktop-sticky > .wrap {
    max-width: 1120px;
  }
}

@media (min-width: 1280px) {
  .desktop-sticky > .wrap {
    max-width: 1200px;
  }
}

/* ---------- [ Nav: Privacy ] ---------- */

.nav-privacy .menu-item::after {
  content: '/';
  margin-left: 8px;
  position: relative;
  top: 1px;
}

@media (max-width: 1023px) {
  .nav-privacy .menu-item:last-child::after {
    content: none;
  }
}

@media (min-width: 1024px) {
  .nav-privacy .menu-item::after {
    margin-left: 4px;
    top: 0;
  }
}

.nav-privacy .menu-item a {
  padding: 2px 0;
  font-size: 12px;
  border-bottom: 1px solid transparent;
  display: inline-block;
}

@media (hover: hover) {
  .nav-privacy .menu-item a:hover {
    border-bottom-color: inherit;
  }
}

/* ================================
[ Containers ]
================================ */

body {
  margin-top: 48px;
}

@media (min-width: 1024px) {
  body {
    margin-top: 0;
  }
}

/* ================================
[ Sections ]
================================ */

/* ---------- [ Before Header ] ---------- */

.before-header {
  display: none;
}

@media (min-width: 1024px) {
  .before-header {
    display: block;
    background: #a3cf5e;
    text-align: center;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.015em;
  }
}

.before-header > .wrap {
  position: relative;
}

/* ---------- [ Header ] ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  height: 48px; /* helps with JS consistency */
  z-index: 9999;
  border-bottom: 2px solid #ebecec;
}

@media (min-width: 1024px) {
  .site-header {
    position: relative;
    height: auto !important; /* to overwrite inline styles added by js, if the user resizes their browser */
    background: transparent;
    overflow: visible;
    z-index: auto;
    border-bottom: 0;
    flex-basis: 320px;
  }
}

.admin-bar .site-header {
  top: 46px; /* height of admin bar */
}

@media (min-width: 783px) {
  .admin-bar .site-header {
    top: 32px; /* height of admin bar */
  }
}

@media (min-width: 1024px) {
  .admin-bar .site-header {
    top: auto;
  }
}

.site-header > .wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

@media (max-width: 1023px) {
  .site-header > .wrap {
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 767px) {
  .site-header > .wrap {
    max-width: 100%;
  }
}

/* [ Toggles ] */

.site-header .generic-toggle {
  width: 48px;
  height: 46px; /* height minus border */
}

.site-header .search-toggle {
  color: #1f847d;
}

/* [ Logo ] */

.title-area {
  flex: 1;
  height: 100%;
}

.title-area .site-title a {
  display: block;
  margin: 8px auto 0;
  height: 30px; /* height minus border minus 16px space */
  background: url(/wp-content/themes/once-coupled-one-little-project/assets/images/logo.svg) no-repeat left 10px center / contain;
  text-indent: -9999px;
  transition: opacity 400ms;
}

@media (min-width: 768px) {
  .title-area .site-title a {
    background-position: left 20px center;
  }
}

@media (min-width: 1024px) {
  .title-area .site-title a {
    width: 320px;
    height: 48px;
    margin: 0;
    position: relative;
    z-index: 9;
    background-position: center;
  }
}

@media (hover: hover) {
  .title-area .site-title a:hover {
    opacity: 0.55;
  }
}

.site-description {
  text-indent: -9999px;
  margin: 0;
  height: 0;
}

/* [ Search ] */

#header-search {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100vw;
  height: 68px;
  background: #fff0eb;
  padding: 12px 28px;
}

#header-search .search-form {
  background-color: #fff;
}

@media (min-width: 1024px) {
  #header-search {
    display: none;
  }
}

/* ---------- [ Site Footer ] ---------- */

/* [ Footer Columns ] */

.footer-columns {
  margin: 20px 0 8px;
}

@media (min-width: 1024px) {
  .footer-columns {
    margin: 32px 0;
  }
}

.footer-menus {
  margin: 8px 0 0;
}

@media (min-width: 1024px) {
  .footer-menus {
    margin-top: 0;
  }
}

.footer-menus .flexbox {
  margin: 0 12px;
}

@media (min-width: 1024px) {
  .footer-menus .flexbox {
    margin: 0;
  }
}

.footer-menus .section-title {
  font-size: 20px;
  margin-top: -2px;
  margin-bottom: 10px;
}

.footer-menu {
  margin: 16px 0 0;
}

@media (min-width: 1024px) {
  .footer-menu {
    margin-top: 0;
  }
}

/* [ Footer Bottom ] */

.footer-bottom {
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

@media (min-width: 1024px) {
  .footer-bottom {
    margin: 60px 0 32px;
  }
}

@media (min-width: 1024px) {
  .footer-bottom .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-left,
.footer-right,
.footer-search {
  margin: 12px 0;
}

@media (min-width: 1024px) {
  .footer-left,
  .footer-right {
    flex: auto;
    margin: 0;
  }

  .footer-left {
    text-align: left;
  }

  .footer-right {
    text-align: right;
    margin-top: 4px;
  }

  .footer-social,
  .footer-search {
    display: inline-block;
    vertical-align: middle;
  }

  .footer-search {
    margin: 0 0 0 12px;
    width: 160px;
  }
}

.footer-nav,
.footer-credits {
  display: inline-block;
}

@media (min-width: 1024px) {
  .footer-copyright,
  .footer-nav,
  .footer-credits {
    vertical-align: middle;
  }
}

.footer-nav {
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .footer-nav {
    margin-top: 2px;
  }
}

.footer-nav + .footer-credits {
  position: relative;
  padding-left: 2px;
}

/* ================================
[ Content ]
================================ */

/* ---------- [ Breadcrumbs ] ---------- */

.breadcrumb {
  background: #ebecec;
  margin: 0 -10px 12px;
  padding: 8px 10px;
  font-family: 'Roboto Slab', sans-serif;
  font-size: 12px;
  line-height: 1;
}

@media (min-width: 768px) {
  .breadcrumb {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  .breadcrumb {
    margin: 0 calc((100vw - 1020px) / 2 * -1) 20px;
    padding-left: calc((100vw - 1020px) / 2);
    padding-right: calc((100vw - 1020px) / 2);
  }
}

@media (min-width: 1200px) {
  .breadcrumb {
    margin-left: calc((100vw - 1120px) / 2 * -1);
    margin-right: calc((100vw - 1120px) / 2 * -1);
    padding-left: calc((100vw - 1120px) / 2);
    padding-right: calc((100vw - 1120px) / 2);
  }
}

@media (min-width: 1280px) {
  .breadcrumb {
    margin-left: calc((100vw - 1200px) / 2 * -1);
    margin-right: calc((100vw - 1200px) / 2 * -1);
    padding-left: calc((100vw - 1200px) / 2);
    padding-right: calc((100vw - 1200px) / 2);
  }
}

.breadcrumb a {
  text-decoration: none;
}

@media (hover: hover) {
  .breadcrumb a:hover {
    text-decoration: underline;
  }
}

.breadcrumb-separator::before {
  content: '/';
  padding: 0 8px;
}

/* ---------- [ Titles ] ---------- */

.archive-title,
.entry-title,
.section-title {
  margin: 0 0 8px;
  line-height: 1;
}

.archive-title {
  color: #1f847d;
}

.search .site-container .entry-title,
.archive .site-container .entry-title,
.home .content-sidebar-wrap .entry-title {
  margin: 8px 8px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

@media (min-width: 768px) {
  .search .site-container .entry-title,
  .archive .site-container .entry-title,
  .home .content-sidebar-wrap .entry-title {
    font-size: 24px;
  }

  .search .site-container .entry-title-link,
  .archive .site-container .entry-title-link,
  .home .content-sidebar-wrap .entry-title-link {
    color: #d84f9c;
  }
}

@media (hover: hover) {
  .search .site-container .entry-title-link,
  .archive .site-container .entry-title-link,
  .home .content-sidebar-wrap .entry-title-link {
    text-decoration: none;
  }
}

.search .site-container .entry-title-link::after,
.archive .site-container .entry-title-link::after,
.home .content-sidebar-wrap .entry-title-link::after {
  content: '';
  display: block;
  width: 40%;
  margin: 8px auto 0;
  transition: 400ms;
}

@media (min-width: 1024px) {
  .search .site-container .entry-title-link::after,
  .archive .site-container .entry-title-link::after,
  .home .content-sidebar-wrap .entry-title-link::after {
    height: 2px;
    background: #237f85;
  }
}

@media (hover: hover) {
  .search .site-container .entry-title-link:hover::after,
  .archive .site-container .entry-title-link:hover::after,
  .home .content-sidebar-wrap .entry-title-link:hover::after {
    width: 60%;
  }
}

.archive-recent-title {
  margin-top: 24px;
  text-align: center;
}

/* ---------- [ Descriptions ] ---------- */

.entry-description,
.section-description {
  font-size: 18px;
}

.archive-nav .section-description p:first-of-type {
  margin-top: 0;
}

.archive-nav .section-description p:last-of-type {
  margin-bottom: 0;
}

/* ---------- [ Entries ] ---------- */

.post-listing .content .entry,
.home .content-sidebar-wrap .entry,
.home-posts .entry {
  background: #fff;
  border: 2px solid #ebecec;
  margin-bottom: 12px;
  padding-bottom: 16px;
}

@media (min-width: 768px) {
  .post-listing .content .entry,
  .home .content-sidebar-wrap .entry,
  .home-posts .entry {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
}

.post-listing #genesis-content > div.entry {
  width: 100%; /* flexbox fix for when no posts are found (otherwise container would be 'article') */
}
