/* Mobile first. Breakpoints: 48em (768px) for the main layout; 600px for the About photo and gallery. */

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-800-italic.woff2") format("woff2"); }

:root {
  --green: #70b62c;
  --grey: #706f6f;
  --text: #333;
  --text-strong: #222;
  --text-muted: #666;
  --text-subtle: #767676;
  --border: #eee;
  --stripe: #f0f0f0;
  --bg: #fff;

  --font: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap-pad: 30px;
  --nav-h: 0px; /* set by site.js */
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.66;
  overflow-wrap: break-word;
}

@media (min-width: 48em) {
  :root { --wrap-pad: 48px; }
  body { font-size: 16px; line-height: 1.5; }
  .two-col {
    display: grid;
    grid-template-columns: 36% 58%;
    justify-content: space-between;
    align-items: start;
  }
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

p { margin: 0 0 1.5em; }
b, strong { font-weight: 700; }

.wrap {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: auto; height: auto; clip: auto;
  padding: 12px 20px;
  background: var(--bg);
  color: var(--text-strong);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
}

.icon { fill: currentColor; vertical-align: middle; }

/* ---------- Header ---------- */

.hero {
  position: relative;
  background: #000;
}
.hero__img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 75%, rgba(0, 0, 0, .3) 100%);
}

.branding {
  position: relative;
  z-index: 1;
  padding: 15px 0;
  color: #fff;
}
.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-title a { text-decoration: none; }
.site-description {
  margin: 0;
  opacity: .8;
  font-size: 13px;
}

/* Home: the photo is fixed to the viewport and clipped to the hero, so content scrolls
   up over it (the original theme's parallax effect, and its crop). */
.home .hero {
  height: 75vh;
  height: 75svh;
  clip-path: inset(0);
}
.home .hero__img { position: fixed; height: 100vh; }
.home .branding { position: absolute; left: 0; right: 0; bottom: 0; padding-top: 0; }

@media (min-width: 48em) {
  .branding { padding: 48px 0; }
  .site-title { font-size: 36px; }
  .site-description { font-size: 16px; }

  .home .site-header {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
  }
  .home .hero { flex: 1; height: auto; }
  /* On desktop the shading covers only the bottom third of the header, including behind the nav */
  .home .hero::after { top: auto; bottom: calc(-1 * var(--nav-h)); height: 33vh; height: 33svh; }
}

/* ---------- Navigation ---------- */

.nav-holder { position: relative; z-index: 10; }

.site-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.site-nav .wrap { position: relative; padding: 0; }

.menu-toggle {
  display: block;
  margin: 1px auto 2px;
  padding: 14px;
  border: 0;
  background: none;
  color: var(--text-strong);
  font: 800 14px/1.5 var(--font);
  cursor: pointer;
}
.menu-toggle .icon {
  position: relative; top: -2px;
  width: 14px; height: 14px;
  margin-right: 7px;
}
.menu-toggle .icon-close,
.site-nav.is-open .icon-bars { display: none; }
.site-nav.is-open .icon-close { display: inline; }

.menu {
  display: none;
  margin: 0;
  padding: .75em 27px;
  border-top: 1px solid var(--border);
  list-style: none;
}
.site-nav.is-open .menu { display: block; }
.menu li { border-bottom: 1px solid var(--border); }
.menu li:last-child { border-bottom: 0; }
.menu a {
  display: block;
  padding: 8px 0;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current="page"] { color: var(--text-subtle); }

.menu-scroll-down { display: none; }

@media (min-width: 48em) {
  .site-nav .wrap { padding: 10.5px 28px; }
  .menu-toggle { display: none; }
  /* Inline-block rather than flex: the whitespace between <li>s gives the original's ~3px gaps */
  .menu { display: block; padding: 0; border-top: 0; }
  .menu li { display: inline-block; border: 0; }
  .menu a { padding: 14px 17.5px; font-size: 14px; }

  .menu-scroll-down {
    display: block;
    position: absolute; top: 9.8px; right: 0;
    padding: 14px;
    color: var(--text-subtle);
  }
  .menu-scroll-down:hover { color: var(--text-strong); }
  .menu-scroll-down .icon { position: relative; top: -.0625em; width: 18px; height: 18px; transform: rotate(90deg); }

  .site-nav.is-fixed { position: fixed; top: 0; left: 0; right: 0; }
}

/* ---------- Content ---------- */

.site-content {
  flex-grow: 1;
  padding: 2.5em 0 1.5em;
  scroll-margin-top: var(--nav-h);
}
.home .site-content { padding: 0; }
.home .site-content > .wrap { padding-top: 26px; padding-bottom: 8px; }

.entry-header { padding-bottom: 1em; }
.home .entry-header { padding-bottom: 0; }
.entry-title {
  margin: 0 0 3.5px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Element defaults use :where() so they have no extra specificity and any class overrides them */
:where(.entry-content) :is(h2, h3, h4) {
  margin: 0 0 .75em;
  padding-top: 1.5em;
  line-height: 1.4;
}
:where(.entry-content) :is(h2, h3, h4):first-child { padding-top: 0; }
:where(.entry-content) h2 { color: var(--text-muted); font-size: 20px; font-weight: 300; }
:where(.entry-content) h3 { font-size: 18px; font-weight: 300; }
:where(.entry-content) h4 { font-size: 16px; font-weight: 800; }
.home .entry-content h2 { font-size: 25px; text-align: center; }
.home .entry-content h2.services { font-size: 22px; }

:where(.entry-content) a {
  color: var(--text-strong);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgb(15, 15, 15);
}
:where(.entry-content) a:is(:hover, :focus) {
  color: #000;
  box-shadow: 0 3px 0 #000;
}
a[href^="tel:"] { color: inherit; box-shadow: none; }

:where(.entry-content) ul { margin: 0 0 1.5em; padding: 0; }
:where(.entry-content) figure { margin: 0 0 1.5em; }
:where(.entry-content) figure img { width: 100%; }

.list-circle { list-style-type: circle; }

.indent-1 { padding-left: 20px; }
.indent-2 { padding-left: 40px; }
.indent-3 { padding-left: 60px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-md { font-size: 20px; }
.text-xl { font-size: 25px; }

.text-green { color: var(--green); }
.text-grey { color: var(--grey); }
.text-black { color: #000; }

:where(.entry-content) blockquote {
  display: flow-root; /* contains the paragraph's bottom margin, matching the original spacing */
  margin: 0 0 1.75em;
  color: var(--text-muted);
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 48em) {
  .site-content { padding: 5.5em 0 3.25em; }
  .home .site-content > .wrap { padding-top: 96px; padding-bottom: 72px; }
  :where(.entry-content) h2 { font-size: 26px; }
  :where(.entry-content) h3 { font-size: 22px; }
  :where(.entry-content) h4 { font-size: 18px; }
}

.media-text {
  display: grid;
  align-items: center;
  margin: 0 0 1.5em;
}
.media-text__media { margin: 0; }
.media-text__content { padding: 0 8%; }

.social-links,
.gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.social-links { gap: 12px; margin: 0; }
.social-links a { display: flex; box-shadow: none; }
.social-links .icon { width: 24px; height: 24px; }
.social-links .facebook { color: #0866ff; }
.social-links .linkedin { color: #0d66c2; }

/* Rows stretch to the tallest image and images crop to fill, like WordPress's "cropped" gallery */
.gallery { gap: 1em; margin: 0 0 2.5em; }
.gallery li { display: flex; flex-grow: 1; width: calc((100% - 1em) / 2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 600px) {
  .media-text { grid-template-columns: 50% 50%; }
  .media-text__media { grid-column: 2; grid-row: 1; }
  .gallery li { width: calc((100% - 2em) / 3); }
}

.table-stripes { margin: 0 0 1em; border-bottom: 1px solid var(--stripe); }
.table-stripes table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; }
.table-stripes tr { border-bottom: 1px solid var(--border); }
.table-stripes tr:nth-child(odd) { background: var(--stripe); }
.table-stripes td { padding: .5em; border: 1px solid transparent; }

/* ---------- Footer ---------- */

/* Spacing is in em so it follows the footer's base size (15px mobile, 14px desktop) */
.site-footer { border-top: 1px solid var(--border); }
.site-footer > .wrap { padding-top: 2em; padding-bottom: 1.5em; }

.footer-widgets { padding: 2em 0; }
.footer-widget { padding-bottom: 3em; }
.footer-widget small { font-size: 13px; }

.site-info { margin-bottom: 14px; font-size: 14px; }
.site-info a { color: var(--text-muted); text-decoration: none; }
.site-info a:hover { color: var(--text-strong); text-decoration: underline; }
.site-info .sep { padding: 0 .2em 0 .4em; }

@media (min-width: 48em) {
  .site-footer { margin-top: 42px; font-size: 14px; line-height: 1.6; }
  .site-info { padding-top: .7em; }
}
