/*
Theme Name: Pilar4CA
Version: 2024
Author: FWDLABS
Author URI: https://fwdlabs.com
*/

/* Reset (Meyer) */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style-type: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Boilerplate */

html {
	background:#eee;
    color: #585d62;
    line-height: 1.4;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

div.wpcf7 label {
    color:#555;
    display:block;
    margin-bottom:0.25rem;
}

span.wpcf7-not-valid-tip,
.wpcf7 form .wpcf7-response-output {
    font-size:0.85rem;
    color:#555;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-style:italic;
    display:block;
    margin:0 0 1rem 0 !important;
    padding:0 !important;
    border:0 !important;
}

div.wpcf7 fieldset {
	margin: 1em 0;
	padding:1em 1em 0 1em;
	border-left:1px solid #ccc;
}

div.wpcf7 fieldset legend {
	font-family: 'Montserrat',Helvetica,Arial,sans-serif;
    color: #333;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
	background:#ccc;
	display:inline-block;
	padding:0.25em 0.5em;
	margin-left: -1.01em;
}

div.wpcf7 p { margin-bottom:0 !important; }

div.wpcf7 input[type=submit] {
    background:#20225b;
    color:#fff;
    font-weight:bold;
}

textarea {
    resize: vertical;
	font-family:Helvetica, Arial, sans-serif;
}

.hidden {
    display: none !important;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

	/*
    #bd a[href]:after {
        content: " (" attr(href) ")";
    }

    #bd abbr[title]:after {
        content: " (" attr(title) ")";
    }

    #bd a[href^="#"]:after,
    #bd a[href^="javascript:"]:after {
        content: "";
    }
	*/

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        page-break-inside: auto;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

	h1,
	h2 {
		line-height:1;
		margin-bottom:0;
	}

    p,
    h2,
    h3,
	h4 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3,
	h4 {
        /* page-break-after: avoid; */
    }

	.no-print,
	.post-edit-link,
	#header-navigation,
	#credit { display:none; }

}

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

/* Custom */

html, body {
	height: 100%;
	width: 100%;
}

body {
	font-family: 'Open Sans',Helvetica,Arial,sans-serif;
    font-size: 16px;
    line-height: 1.625;
    color: #585d62;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

#doc {
	background:#fff;
	font-weight:400;
	width:100%;
	margin:0 auto;
    position:relative;
	}

#hd {
	color:#fff;
	position: -webkit-sticky;
    position: sticky;
    top:0;
    background: linear-gradient(
    to right,
    #f07a22 0%,
    #f07a22 50%,
    #20225b 50%,
    #20225b 100%
    );
    z-index:999;
	}

#bd {
	line-height:1.25;
	min-height:80vh;
    overflow:hidden;
	}

#ft {
	color:#20225b;
	}

a { text-decoration:none; color:#f07a22; }
a:hover { color:#20225b; }

#header-wrap,
#bd article,
#ft {
    max-width:1180px;
    margin:0 auto;
}

    #header-wrap {
        align-items: center;
        position: relative;
    }

        #header-logo:before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: -84px;
            width: 84px;
            height: 84px;
            clip-path: polygon(100% 0, 0 0, 100% 100%);
            background-color: #fff;

        }

        #header-logo-after {
            width: 84px;
            height: 84px;
            background: linear-gradient(135deg, #fff 50%, #20225b 0%);
            min-width: 42px;

            /*
            clip-path: polygon(0 0, 0% 100%, 100% 0);
            background-color: #fff;
            */
        }        

    #header-menu {
        flex:1;
        background-color:#20225b;
        height: 84px;
        align-items: center;
        display: flex;
    }

    #header-social { display:none; }

    @media(max-width:850px){
        #header-logo-after { display:none; }
        #header-menu li#menu-item-46,
        #header-logo { padding:1rem; }
        #hd,
        #header-menu { background:#fff; }
        #header-social,
        #header-menu li:not(#menu-item-46) { display:none; }
    }

    #header-logo {
        background-color:#fff;
        height: 84px;
        display: flex;
        align-items: center;
    }

#header-mobile-menu {
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    overflow-x:hidden;
    background:#20225b;
    color:#fff;
    height: 100%;
    width: 100%;
}
#header-mobile-menu p { color:#fff; }
#header-mobile-menu .row {
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

#header-mobile-menu-links {
    align-items: center; justify-content: center; display: flex;
}

.row,
ul#menu-header-menu {
    display:flex;
    flex-direction:row;
}

@media(max-width:850px){
    .order-first-on-mobile { order:-1; }
}

@media(max-width:850px){
    .row.column-on-tablet { flex-direction:column; }
}

@media(max-width:640px){
    .row.column-on-mobile { flex-direction:column; }
    .width-100-on-mobile { max-width:100% !important; width:100%; }
	.order-1-on-mobile { order:1; }
	.order-2-on-mobile { order:2; }
}

.row .column-flex-0 { flex:0; }
.row .column-flex-1 { flex:1; }
.row .column-flex-2 { flex:2; }

section#hero {
    height:480px;
    background-color:#fff;
    display:block;
    overflow:auto;
}
body.home section#hero { height:600px; }
@media(max-width:850px){
    section#hero { height:auto !important; }
}

section#hero .row {
    height: 100%;
    position: relative;
    z-index: 2;
}
section#hero p { font-size: 1.25rem; font-weight:bold; text-align:center; }

#hero-image {
    background-size:cover;
    background-repeat:no-repeat;
    background-position:center center;
    order: 2;
    min-height:400px; 
}
    body.home #hero-image { order:0; }
    body.page-id-186 #hero-image,
    body.page-id-1884 #hero-image { background-size:contain; } /* Endorsements */

    @media(max-width:850px){
        #hero-image {
            order:0;
            aspect-ratio:16/9;
            min-height:auto;
        }
        body.home #hero-image { aspect-ratio:1/1; }
    }

#hero-text {
    display: flex;
    align-items: center;
    text-align:right;
}
    section#hero #hero-text p { text-align:right; }

    body.home section#hero #hero-text h1,
    body.home section#hero #hero-text h2 { text-align:left; }
    body.home section#hero #hero-text p { text-align:left; }
    #hero-text .gutter { margin-left: auto; }
        body.home #hero-text .gutter { margin-left: 0; }

#hero-text .gutter { max-width:590px; }
@media(max-width:850px){
    #hero-text,
    section#hero #hero-text p { text-align:left; }
    #hero-text .gutter { max-width:100% !important; margin-left:0; }
}

#hero.hero-without-image {
    display: flex; align-items: center; justify-content: center; text-align: center;
}
#hero.hero-without-image h1 { max-width: 1180px; text-wrap:balance; }
@media(max-width:850px){
    #hero.hero-without-image {
        height: auto;
        min-height:600px;
        background-color:rgba(240, 122, 34, 0.08);
    }
    section#hero.hero-without-image:before { display:none; }
}
.hero-without-image-background-extension {
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-color: transparent;
    background-image: linear-gradient(90deg, transparent 50%, #FDF5F0 50%);
}
.hero-without-image-text {
    z-index:2;
}
.hero-without-image-text p { text-wrap:balance; }

section#hero {
    position:relative;
    overflow:hidden;
}

section#hero:before {
    content: "";
    width: 100vh;
    height: 100vh;
    background: #f07a22;
    position: absolute;
    top: 50%;
    left: calc(50% - 1180px/4 - 5.4rem);
    transform: translateY(-50%) rotate(-41deg);
    transform-origin: 0 50%;
    z-index: 0;
    opacity: .08;
}
body.home section#hero:before { display:none; }
@media(max-width:850px){
    section#hero { overflow:auto; }
    section#hero:before { top:0; transform:none; }
}
@media(max-width:640px){
    section#hero:before,
    article#main:before { display:none; }
    section#hero { background-color:#FDF5F0; }
}

article#main {
    position:relative;
}

article#main:before {
    content: "";
    border-left: calc(25vw + 6.4rem) solid transparent;
    border-bottom: calc(25vw + 6.4rem) solid transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    position: absolute;
    top: 0;
    left: calc(50% - 1180px/4 - -7.5rem);
    width: 100vh;
    height: 100vh;
    border-top: calc(25vw + 6.4rem) solid #20225b;
    border-right: calc(25vw + 6.4rem) solid #20225b;
    z-index: 0;
    opacity: .033;
}


.grid {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1.2rem;
    margin-bottom:1rem;
    align-items: center;
}
@media(max-width:850px){
    .grid { grid-template-columns: repeat(2, 1fr); }
}

#header-mobile-menu-button { display:none; }
@media(max-width:850px){
    #header-mobile-menu-button { display:block; }
}
#header-mobile-menu-button .button { margin-bottom:0 !important; }

    ul#menu-header-menu {
        justify-content:space-between;
        width:100%;
    }

    .menu a {
        font-size:1.1rem;
        color:#fff;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-weight:bold;
        text-align: center;
        display: inline-block;
        white-space: nowrap;
    }
        .menu a:hover {
            text-decoration:underline;
        }

        @media(max-width:1200px){
            ul#menu-header-menu a,
            #header-wrap .button.button-secondary,
            #header-mobile-menu .button.button-secondary { font-size:0.9rem; padding: 0.4rem; }
        }

    .menu li {
        flex:0;
    }

    .menu li.current-menu-item a {
        color:#20225b;
        background-color:#fff;
    }

    ul#menu-header-menu li.menu-item-46 {
        margin-left:auto;
    }

    ul#menu-header-menu li.menu-item-46 a {
        color:#fff;
        background-color:#f07a22;
    }

h1 {
    color:#20225b;
    font-size: 3.5rem;
    line-height: 1.25;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.8rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 3.2rem;
}
    body.home h2 { color:#f07a22; font-size:2rem; }

h3 {
    color:#20225b;
    font-size: 2.5rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 1rem;
}

@media(max-width:850px){
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    body.home h2 { font-size:1.25rem; }
    h3 { font-size:1.25rem; }
}

p {
    margin-bottom:1.25rem;
}
    section#hero p:last-of-type { margin-bottom:0; }

p, #main li {
    font-size:1rem;
    line-height:1.5;
    color: #20225b;
}

small {
    font-size:0.8rem;
    display:block;
}

.last {
    margin-bottom:0 !important;
}

strong {
    font-weight:bold;
}

em, i {
    font-style:italic;
}

.gutter {
    padding:1.5rem;
}

ul, ol {
    margin-left:2rem;
}
    ul {
        list-style-type:disc;
    }
    ul.menu { margin-left:0; list-style-type:none; }

li {
    margin-bottom:1rem;
}
    ul.menu li { margin-bottom:0; text-align:center; }

blockquote {
    border-left: 5px solid;
    padding: 0.4rem 1.8rem;
    margin: 0 0 1rem;
    opacity: .75;
}

input {
    width:100%;
    margin-bottom:1rem;
    outline:none;
    padding: 1rem;
}
input[type=submit] {
    border:0;
    cursor:pointer;
}

.button {
    display: inline-block;
    padding: 1rem;
    font-size: 100%;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: #f07a22;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
    margin-bottom:0.3rem;
}
.button:active, .button:hover {
    color: #fff;
    opacity: .66;
    text-decoration: none;
}
    .button.button-secondary {
        background:#ccc;
        color:#000;
    }
    .button.button-secondary:hover {
        opacity: .66;
    }

#main p,
#main .gutter,
.gallery {
    z-index: 1;
    position: relative;
}

.gallery img {
    max-width: 100%;
    height: auto;
}

#gallery-2 .gallery-item {
    background:#ccc;
}
.gallery-item a { display:block; }

.video-embed,
.calendar-embed {
	width:100%;
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin:0;
}
    .video-embed { margin-bottom:1rem; }
    
.video-embed iframe,
.calendar-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	bottom:0;
	right:0;
	text-align:center;
}

.id-only { color:red; }

.screen-reader-response {
    border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/*! Lity - v3.0.0-dev - 2020-04-26
* http://sorgalla.com/lity/
* Copyright (c) 2015-2020 Jan Sorgalla; Licensed MIT */

.lity-active,
.lity-active body {
  overflow: hidden;
}

.lity {
  z-index: 9990;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  background: #0b0b0b;
  background: rgba(0, 0, 0, .9);
  outline: none !important;
  opacity: 0;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.lity.lity-opened {
  opacity: 1;
}

.lity.lity-closed {
  opacity: 0;
}

.lity * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.lity-wrap {
  z-index: 9990;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  outline: none !important;
}

.lity-wrap:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em;
}

.lity-loader {
  z-index: 9991;
  color: #fff;
  position: absolute;
  top: 50%;
  margin-top: -0.8em;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.lity-loading .lity-loader {
  opacity: 1;
}

.lity-container {
  z-index: 9992;
  position: relative;
  text-align: left;
  vertical-align: middle;
  display: inline-block;
  white-space: normal;
  max-width: 100%;
  max-height: 100%;
  outline: none !important;
}

.lity-content {
  z-index: 9993;
  width: 100%;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform .3s ease;
  transition: -webkit-transform .3s ease;
  -o-transition: -o-transform .3s ease;
  transition: transform .3s ease;
  transition: transform .3s ease, -webkit-transform .3s ease, -o-transform .3s ease;
}

.lity-loading .lity-content,
.lity-closed .lity-content {
  -webkit-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
}

.lity-content:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
}

.lity-close,
.lity-close:hover,
.lity-close:focus,
.lity-close:active,
.lity-close:visited {
  z-index: 9994;
  width: 35px;
  height: 35px;

  /* Change to position: absolute to display close button inside content container */
  position: fixed;
  right: 0;
  top: 0;
  -webkit-appearance: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  padding: 0;
  color: #fff;
  font-style: normal;
  font-size: 35px;
  font-family: Arial, Baskerville, monospace;
  line-height: 35px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  border: 0;
  background: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.lity-close::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.lity-close:active {
  top: 1px;
}

/* Image */

.lity-image img {
  max-width: 100%;
  display: block;
  line-height: 0;
  border: 0;
  max-width: 1500px;
  height: auto;
}

/* iFrame */

.lity-iframe .lity-container {
  width: 100%;
  max-width: 964px;
}

.lity-iframe-container {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: auto;
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

.lity-iframe-container iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  background: #000;
}

.lity-hide {
  display: none;
}