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

:root {
  --accent: #00bc96;
  --text: #323b44;
  --heading: #323b45;
  --muted: #666;
  --border: #f2f2f2;
  --nav-bg: #4f5e70;
  --bg: #fff;
  --max-width: 1160px;
}

html { font-family: sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Open Sans', Helvetica, Arial, Verdana, sans-serif; font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); }

/* clearfix */
.clearfix::after, .container::after { content: ""; display: table; clear: both; }

/* container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------
   MASTHEAD - fixed nav bar, semi-transparent
------------------------------------------------------- */
#masthead {
  width: 100%;
  background: rgba(79, 94, 112, 0.8);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  font-family: 'Ubuntu', Helvetica, Arial, Verdana, sans-serif;
  min-height: 70px;
  transition: all 0.6s ease-in-out;
}

#masthead .container { padding: 0 20px; }

#site-branding {
  float: left;
  width: 20%;
  padding: 20px 0;
}

.site-title {
  font-family: 'Ubuntu', Helvetica, Arial, Verdana, sans-serif;
  font-weight: 400;
  margin: 8px 0 5px;
  font-size: 28px;
  line-height: 1;
}
.site-title a { text-decoration: none; color: #fff; }
.site-title a:hover { color: #fff; opacity: 0.85; }

#site-description {
  color: var(--accent);
  padding: 20px 0 0;
  font-size: 14px;
  line-height: 1;
}
#site-description.eighty {
  width: 80%;
  float: left;
  padding-right: 15px;
}

/* -------------------------------------------------------
   NAVIGATION
------------------------------------------------------- */
.site-navigation {
  font-family: 'Hind', Helvetica, Arial, Verdana, sans-serif;
  width: 80%;
  float: right;
}

.toggle-nav { display: none; }

#primary-menu {
  margin: 0;
  padding: 0;
  float: right;
  list-style: none;
}

#primary-menu li {
  float: left;
  position: relative;
  list-style: none;
}

#primary-menu li a {
  display: block;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
}

#primary-menu li a:hover { color: var(--accent); }
#primary-menu li.current-menu-item > a { color: var(--accent); }

/* -------------------------------------------------------
   MAIN HEADER BANNER (below fixed nav)
------------------------------------------------------- */
.masthead-block {
  height: 70px;
}

.main-header {
  background-color: #ced2d7;
  background-image: url('/uploads/2018/08/cropped-IMG_5668-2.jpg');
  background-repeat: no-repeat;
  background-position: 65% 0;
  background-size: cover;
  background-attachment: scroll;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.home .main-header {
  min-height: 580px;
}

.main-header > .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.header-title {
  padding: 20px 0;
  opacity: 0;
}
.main-header.has-smoothing-effect .header-title {
  opacity: 1;
}

/* -------------------------------------------------------
   TWO COLUMN LAYOUT
------------------------------------------------------- */
#content { padding: 0 0 30px; }

#primary {
  background: transparent;
  width: 66%;
  float: left;
}

#secondary {
  background: transparent;
  width: 31%;
  float: right;
}

/* -------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Helvetica, Arial, Verdana, sans-serif;
  color: var(--heading);
  line-height: 1.3;
  margin-top: 0;
}
h1 { font-size: 26px; margin-bottom: 30px; }
h2 { font-size: 24px; margin-bottom: 25px; }
h3 { font-size: 22px; margin-bottom: 20px; }
h4 { font-size: 20px; margin-bottom: 15px; }

a { color: var(--accent); }
a:hover { color: #009b7d; }

/* -------------------------------------------------------
   ARTICLES (list view)
------------------------------------------------------- */
article {
  position: relative;
  background: #fff;
  border-radius: 5px;
  margin-bottom: 30px;
}

.post-wrapper { padding: 0; }

.entry-header { margin-bottom: 15px; }

.entry-title { font-size: 22px; margin-bottom: 5px; }
.entry-title a { color: var(--heading); text-decoration: none; }
.entry-title a:hover { color: var(--accent); }

.entry-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 15px;
}
.entry-meta a { color: var(--muted); }
.entry-meta span { margin-right: 10px; }

.entry-summary p, .entry-content p { margin-top: 0; margin-bottom: 1.2em; }

.read-more {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.2s;
}
.read-more:hover { background: #009b7d; color: #fff; }

.post-divider { border: none; border-top: 1px solid var(--border); margin: 30px 0; }

/* -------------------------------------------------------
   SINGLE POST
------------------------------------------------------- */
.entry-content img { max-width: 100%; height: auto; border-radius: 3px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }

/* WordPress caption/figure alignment */
.entry-content .alignleft { float: left; margin: 0 20px 15px 0; }
.entry-content .alignright { float: right; margin: 0 0 15px 20px; }
.entry-content .aligncenter { display: block; margin: 0 auto 15px; }
.entry-content figure.alignleft { float: left; margin: 0 20px 15px 0; }
.entry-content figure.alignright { float: right; margin: 0 0 15px 20px; }
.entry-content figure.aligncenter { display: block; margin: 0 auto 15px; }
.entry-content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.entry-content figure a img { display: block; }

.entry-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.entry-footer a { color: var(--muted); }

/* -------------------------------------------------------
   CODE
------------------------------------------------------- */
pre {
  background: #f4f4f4;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0 3px 3px 0;
}
code { font-size: 0.9em; background: #f4f4f4; padding: 0.1em 0.3em; border-radius: 2px; }
pre code { background: none; padding: 0; }

/* -------------------------------------------------------
   BLOCKQUOTE
------------------------------------------------------- */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  color: var(--muted);
  font-style: italic;
}

/* -------------------------------------------------------
   LISTS
------------------------------------------------------- */
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: 0.4em; }

/* -------------------------------------------------------
   SIDEBAR
------------------------------------------------------- */
#secondary .widget { margin-bottom: 30px; padding-left: 20px; }

#secondary .widget-title {
  color: var(--heading);
  font-weight: 300;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-left: 10px;
  position: relative;
  font-family: 'Montserrat', Helvetica, Arial, Verdana, sans-serif;
}
#secondary .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 13px;
  background: var(--accent);
  border-radius: 2px;
}

#secondary .widget ul { list-style: none; margin: 0; padding: 0; }
#secondary .widget ul li { padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
#secondary .widget ul li a { color: var(--text); text-decoration: none; }
#secondary .widget ul li a:hover { color: var(--accent); }

#secondary .widget p { font-size: 14px; line-height: 1.6; }
#secondary .widget strong { color: var(--heading); }

/* -------------------------------------------------------
   PAGEFIND SEARCH
------------------------------------------------------- */
#search { margin-top: 5px; }
.pagefind-ui__search-input { width: 100%; font-size: 14px; }

/* -------------------------------------------------------
   PAGINATION
------------------------------------------------------- */
.pagination, .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 20px 0; font-family: 'Open Sans', sans-serif; font-size: 14px; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--border); color: var(--text); text-decoration: none; border-radius: 3px; }
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
#colophon { background: var(--nav-bg); color: rgba(255,255,255,0.7); }
#bottom-footer { padding: 20px 0; }
#bottom-footer .container { display: flex; justify-content: space-between; align-items: center; }
.site-info { font-size: 13px; font-family: 'Open Sans', sans-serif; }
.site-info a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-info a:hover { color: #fff; }

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 900px) {
  #site-branding { width: 40%; }
  .site-navigation { width: 60%; }
}

@media (max-width: 768px) {
  .site-navigation { width: 100%; float: none; clear: both; }
  #site-branding { width: 100%; float: none; }
  #site-description.eighty { width: 100%; float: none; }
  #primary-menu { float: none; }
  #primary-menu li { float: none; display: block; }
  #primary { width: 100%; float: none; }
  #secondary { width: 100%; float: none; margin-top: 40px; }
  #secondary .widget { padding-left: 0; }
  .main-header { min-height: 200px; }
  .home .main-header { min-height: 300px; }
}
