/* 
Theme Name: Farley Foundation
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child Theme for Farley Foundation
Author: The Brand Brew
Author URI: https://www.thebrandbrew.ca/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on June 19, 2025 */

body

@font-face {
  font-family: "bentonsans_blackregular";
  src: url("fonts/bentonsans_black-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_black-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_boldregular";
  src: url("fonts/bentonsans_bold-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_bookregular";
  src: url("fonts/bentonsans_book-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_book-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_comp_blackregular";
  src: url("fonts/bentonsans_comp_black-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_comp_black-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_lightregular";
  src: url("fonts/bentonsans_light-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_light-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_mediumregular";
  src: url("fonts/bentonsans_medium-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_medium-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_regularregular";
  src: url("fonts/bentonsans_regular-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "bentonsans_thinregular";
  src: url("fonts/bentonsans_thin-webfont.woff2") format("woff2"),
    url("fonts/bentonsans_thin-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "kindest_realityregular";
  src: url("fonts/kindest_reality_otf-webfont-newnew.woff2") format("woff2"),
    url("fonts/kindest_reality_otf-webfont-newnew.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

.main-nav ul {
  align-items: center;
}

.e-con > .e-con-inner {
  width: 94%;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
.ue_title.testimonial-header,
.blog .entry-title,
.blog .entry-title > span,
.search .entry-title,
.search .entry-title > span,
.archive.category .entry-title,
.archive.category .entry-title > span,
.pagination .nav-next a,
.pagination .nav-prev a{
  font-family: "kindest_realityregular" !important;
  font-weight: 400 !important;
  font-size: clamp(2.45rem, 5vw + 1rem, 4.25rem);
  line-height: 1em;
  letter-spacing: -0.02em;
  font-feature-settings: "liga" on;
}

@media (max-width: 1280px){
  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3{
    font-size: 48px !important;
  }
}

.archive.category h1.entry-title,
.search h1.entry-title,
.search h1.entry-title > span,
.blog h1.entry-title,
.blog h1.entry-title > span,
.archive.category h1.entry-title > span,
.pagination .nav-next a,
.pagination .nav-prev a{
  font-size: 1.25rem;
}

.archive.category .entry-title,
.blog .entry-title,
.blog .entry-title > span,
.search .entry-title,
.search .entry-title > span,
.archive.category .entry-title > span,
.archive.category article .entry-title a{
  color: var( --e-global-color-text ); 
}


.font-override {
  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  .ue_title.testimonial-header {
    font-size: clamp(2.75rem, 5vw + 1rem, 3.75rem);
    letter-spacing: -0.02em;
  }
}

h4,
.h4,
h5,
.h5,
h6,
.h6,
.elementor-button-text,
.form-submit input[type="submit"] {
  font-family: "bentonsans_boldregular" !important;
  font-weight: 400 !important;
  font-size: clamp(1.7rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1em;
}

.blog #content,
.archive.category #content,
.search #content{
  padding-bottom: 6rem;

  @media (max-width: 1000px){
    padding-bottom: 4rem;
  }

  @media (max-width: 750px){
    padding-bottom: 2rem;
  }
}

.archive.category article .entry-title,
.blog article .entry-title,
.blog article .entry-title a,
.search article .entry-title,
.search article .entry-title a,
.archive.category article .entry-title a{
  line-height: 0.4em !important;
}

.search article .entry-title a,
.blog article .entry-title a,
.pagination .nav-next a,
.pagination .nav-prev a{
  color: var(--e-global-color-primary) !important;
}

.archive.category article .entry-title a,
.search article .entry-title a,
.blog article .entry-title a{
  font-family: "bentonsans_boldregular" !important;
  font-weight: 400 !important;
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.4rem);
}

.elementor-button-text,
.form-submit input[type="submit"] {
  font-size: 1.25rem !important;
}

.ctct-message.success.ctct-success{
  color: white !important;
  border: none !important;
  text-align: center !important;
}

p,
li,
span,
a {
  font-family: "bentonsans_bookregular" !important;
  font-size: 1.25rem;
  line-height: 1.4em;

  @media (max-width: 1000px) {
    font-size: 1.1rem;
  }
}

.uc_quote_slider .ue_subtitle{
  font-size: 1.25rem;

  @media (max-width: 1000px) {
    font-size: 1rem;
  }
}

html body .e-con .font-override,
html body .e-con .font-override * {
  font-family: "bentonsans_boldregular" !important;
}

strong {
  font-family: "bentonsans_mediumregular" !important;
}

.custom-kerning .elementor-icon-box-title span{
  letter-spacing: .75px;
}

.single.single-post h1,
.single.single-post h2,
p a,
.elementor-icon-list-items li,
.elementor-icon-list-items span,
.elementor-icon-list-items a {
  color: var(--e-global-color-primary) !important;
}

p + ul{
  margin-top: 2.5rem;
}

.elementor-widget-text-editor ul li{
  line-height: 1.8;

  @media (max-width: 1024px){
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
}

small a {
  font-size: 100%;
  color: white;
  text-decoration: underline !important;
}

small a:hover {
  color: var(--e-global-color-secondary);
}

.no-underline,
.no-underline a {
  text-decoration: none !important;
}

.elementor-widget-text-editor ul + p {
  margin-top: 0.9em;
}

.elementor-widget-text-editor a,
.donation-box a {
  text-decoration: underline;
}

.ml-auto {
  margin-left: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.blog-cover {

  @media (min-width: 1281px){
    aspect-ratio: 16/9;
  }

    @media (max-width: 1000px){
    aspect-ratio: 16/9;
  }

  @media (max-width: 700px){
    aspect-ratio: 16/14;
  }

  @media (max-width: 1000px){
    display: flex;
  }
}

#farley-header.elementor-element {
  background: white;
  left: 0;
  width: 100%;
}

#farley-header.elementor-element.hfe-sticky {
  position: fixed;
  left: 0;
  width: 100%;
  animation: slide-down 0.8s;
}
@keyframes slide-down {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  #my-custom-id.elementor-section.hfe-sticky {
    top: 0;
  }
}

.elementor-widget-n-accordion .e-n-accordion-item-title-text {
  padding-block: 1rem !important;
}

.e-n-accordion-item {
  border: none !important;
  border-bottom: 1px solid var(--e-global-color-primary) !important;
}

.e-n-accordion-item .elementor-element {
  border: none !important;
}

.e-n-accordion-item-title {
  border: none !important;
  justify-content: space-between !important;
}

footer .elementor-widget-text-editor {
  p,
  a {
    font-size: 1rem;
  }

  a {
    color: white !important;
    text-decoration: none;
  }

  a:hover {
    color: var(--e-global-color-secondary) !important;
  }
}

.ctct-form {
  display: flex;
  column-gap: 2rem;
  align-items: end;
  justify-content: center;
  flex-flow: row wrap;

  .ctct-form-field.ctct-form-field-text,
  .ctct-form-field.ctct-form-field-email {
    input {
      background: #4dc3c0;
      color: white;
      width: 100%;
      padding-block: 19px;
      border-radius: 6px;
      border: none;
      font-size: 20px;
      margin-top: 0.75rem;
    }

    @media (max-width: 1000px) {
      width: 100% !important;
      flex: 1 0 100% !important;
    }
  }

  .ctct-form-field.ctct-form-field-text {
    flex: 0 0 32%;
  }

  .ctct-form-field.ctct-form-field-email {
    flex: 0 0 42%;
  }

  .ctct-form-field-submit {
    width: 15%;
    font-family: "bentonsans_boldregular" !important;

    @media (max-width: 1000px){
      width: 100%;
    }
  }

  .ctct-submit {
    width: 100%;
    text-align: center;
    font-weight: bold;
    background: white;
    color: var(--e-global-color-accent);
    border-color: white;
    padding: 16px !important;

    @media (min-width: 1201px){
      padding: 16px 30px !important;
    }

    &:hover {
      background: var(--e-global-color-accent);
      color: white;
    }
  }
}

.blue-subscribe .ctct-form {
  .ctct-form-field.ctct-form-field-text,
  .ctct-form-field.ctct-form-field-email {
    input {
      background: #5265a0;
    }
  }

  .ctct-submit {
    color: var(--e-global-color-primary);

    &:hover {
      background: var(--e-global-color-primary);
      color: white;
    }
  }
}

.ctct-form-wrapper input[type="text"]:required:valid,
.ctct-form-wrapper input[type="email"]:required:valid,
.ctct-form-wrapper input[type="password"]:required:valid,
.ctct-form-wrapper input[type="tel"]:required:valid,
.ctct-form-wrapper input[type="number"]:required:valid {
  border-color: white !important;
}

.ctct-form-field abbr {
  display: none !important;
}

.ctct-form-wrapper .ctct-form::after{
  display: none;
}

.testimonial-header .elementor-heading-title {
  position: relative;
  padding-left: 6.25rem;

  @media (max-width: 1000px){
    padding-left: 4rem;
  }
}

.testimonial-header .elementor-heading-title:before {
  position: absolute;
  left: 0;
  height: 100%;
  display: inline;
  content: "“";
  font-size: 206px;
  line-height: 0.01;
  transform: translateY(89px);

  @media (max-width: 1000px){
    font-size: 162px;
    transform: translateY(66px);
  }
}

.hfe-search-form__container {
  border: 2px solid var(--e-global-color-primary) !important;
  padding: 0.5rem !important;
  display: flex;
  flex-flow: row-reverse;
  border-radius: 0 !important;

  @media (max-width: 750px){
    padding: 0 !important;
  }

  input {
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 1.25rem !important;
    font-family: "bentonsans_boldregular" !important;
    font-weight: 400 !important;
  }

  .hfe-search-submit {
    min-width: 35px !important;
  }

  #clear-with-button,
  .hfe-search-submit {
    border: none !important;
  }
}

.gform-body {
  legend,
  label {
    font-size: 20px !important;
    color: var(--e-global-color-primary) !important;
  }

  .gform-field-label--type-sub {
    font-size: 16px !important;
  }
  input:not([type="checkbox"]),
  textarea,
  select {
    font-size: 1.25rem;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--e-global-color-primary) !important;
  }
}

#gform_submit_button_1 {
  font-family: "bentonsans_boldregular" !important;
  background: var(--e-global-color-secondary) !important;
  width: 100%;
  border-radius: 30px !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  padding-block: 1rem;
}

.uc_author {
  background-size: contain;
}

.owl-next:focus,
.owl-prev:focus{
  border-width: 0px !important;
}

.owl-next:hover,
.owl-prev:hover {
  background: transparent !important;
  color: var(--e-global-color-secondary) !important;
}

header .menu-item a,
.e-n-accordion-item-title-text,
footer .menu-item a,
.footer-text p,
.footer-text a {
  font-family: "bentonsans_boldregular" !important;
}

.e-n-accordion-item-title:hover .e-n-accordion-item-title-text,
.e-n-accordion-item-title-text:hover {
  color: var(--e-global-color-secondary) !important;
}

header .elementor-widget-button.menu-item:hover a {
  color: var(--e-global-color-c62017a) !important;
}

.gfield_required{
  display: none !important;
}

.page-content{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    row-gap: 4rem;
    
    & article{
      width: 31%;
      display: flex;
      flex-flow: row wrap;

       @media (max-width: 750px){
        width: 100% !important;
      }
    }

    & article > *{
      width: 100%
    }

    & article:hover img{
      opacity: 0.6;
    }

    & h2 + a{
      display: block;
      aspect-ratio: 4/3;
      overflow: hidden;
      align-self: end;
      background: var(--e-global-color-secondary);
      border-radius: 25px;
    }

    & a img{
      object-fit: cover;
      object-position: center;
      width: 100%;
      height: 100%;
      transition: all 0.3s ease-out;
    }

    & a + p{
      display: none;
    }
  }

@media (min-width: 1200px){
  .page-content{
    
    & article{
      width: 31%;
      display: flex;
      flex-flow: row wrap;
    }

    & article > *{
      width: 100%
    }
  }
}

a.a-navy,
a.a-navy span{
  color: var(--e-global-color-primary) !important;
}

a.a-white,
a.a-white span{
  color: white !important;

  &:hover{
    color: var(--e-global-color-secondary) !important;
  }
}

html body .just-fix-it,
html body .just-fix-it .e-con-inner{
  max-width: 800px !important;
}

@media (min-width: 1200px){
  html body .fix-this-too img{
    max-width: 480px !important;
    width: 100% !important;
  }

  html body .last-fix .elementor-widget-image{
    width: 90%;
  }
}

html body .mobile-only{
  display: block;
  @media (min-width: 1350px){
    display: none;
  }
}

header .hfe-nav-menu__submenu-arrow.hfe-nav-menu__layout-horizontal{
  width: 100% !important;
  @media (max-width: 1350px){
    left: 0;
    position: fixed !important;

    .menu-item.hfe-button-wrapper a{
      padding-left: 15px !important;
    }
    
    li.menu-item:not(:last-child){
      border-bottom-style: solid !important;
      border-bottom-color: #c4c4c4 !important;
      border-bottom-width: 1px !important;
    }
  }

}

footer .hfe-nav-menu{
  @media (max-width: 1000px){
    flex-flow: row wrap;
    column-gap: 10px;
  }

  @media (max-width: 700px){
    flex-flow: column wrap;
  }

  &:before{
    display: none !important;
  }

  li a{
    padding-left: 0 !important;
  }
}

@media only screen and (max-width: 1350px) {

  header {
    .hfe-nav-menu__toggle{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hfe-nav-menu__breakpoint-tablet .hfe-active-menu + .hfe-nav-menu__layout-horizontal, .hfe-nav-menu__breakpoint-tablet .hfe-active-menu + .hfe-nav-menu__layout-horizontal .hfe-nav-menu, .hfe-nav-menu__breakpoint-tablet .hfe-active-menu + .hfe-nav-menu__layout-vertical {
        background: white !important;  
      visibility: visible;
        opacity: 1;
        height: auto;
        display: block !important;
    }

    .hfe-nav-menu__layout-horizontal, .hfe-nav-menu__layout-horizontal .hfe-nav-menu{
      display: none !important;
      visiblity: hidden !important;
    }
  }
}

@media (min-width: 1350px){
  .left-fix,
  .left-fix *{
    text-align: left !important;
  }
}

#clear-with-button{
  right: auto !important;
}
