/*
 Theme Name:   AgeWell Services
 Theme URI:    https://generatepress.com
 Description:  Custom theme for AgeWell Services. A GeneratePress child theme.
 Author:       Swamp-Side Studio
 Author URI:   https://swampsidestudio.com
 Template:     generatepress
 Version:      0.1
*/


/*
 * Layout
 */
.aws-content-width .wp-block-group__inner-container {
    padding-right: 40px;
    padding-left: 40px;
}
.columns-gap-none {
    gap: 0;
}
.margin-top-none {
    margin-top: 0;
}
.margin-bottom-none {
    margin-bottom: 0;
}
.padding-none,
.wp-block-columns.has-background.padding-none {
    padding: 0;
}
.full-height {
    height: 100%;
}
.image-display-block picture {
    display: block;
}
.aws-subscribe-row {
    position: relative;
    top: 30px;
}
.wp-block-group.alignfull.has-background:not(.aws-subscribe-row) .wp-block-group__inner-container {
    padding-top: 80px;
}
@media (max-width: 1239px) {
    .entry-content .alignwide {
        padding-right: 30px;
        padding-left: 30px;
    }
}


/*
 * Typography
 */
@font-face {
    font-family: "Barmeno Medium";
    src:
            url("fonts/barmeno-medium.otf") format("opentype")
}
.entry-content .wp-block-list li {
    padding-bottom: 12px;
}
@media (max-width: 768px) {
    h1 {
        font-size: 44px
    }
    h2 {
        font-size: 36px
    }
}


/*
 * Links
 */
h2 a,
h3 a{
    text-decoration: none;
}


/*
 * Buttons
 */
.wp-block-button__link {
    border-radius: 10px;
}
.wp-block-buttons-is-layout-flex {
    gap: 1.3em;
}
.aws-button-white-green .wp-block-button__link:hover {
    background-color: #dbdf86  !important;
}
.aws-button-white-yellow .wp-block-button__link:hover {
    background-color: #ffdb8b !important;
}
.aws-button-blue .wp-block-button__link:hover {
    background-color: #657583 !important;
}


/*
 * PDFs
 */
.aws-list-pdf-icons {
    margin-left: 0;
}
.aws-list-pdf-icons li {
    list-style: none;
}
.content-area a:not(.wp-block-button__link)[href$=".pdf"]::before {
    color: #b20838;
    font-family: "Font Awesome 5 Free";
    font-weight: normal;
    font-size: 120%;
    margin-right: 0.3em;
    content: "\f1c1"; /* file-pdf */
}
.content-area p.has-white-color a:not(.wp-block-button__link)[href$=".pdf"]::before,
.content-area .has-aws-navy-background-color a:not(.wp-block-button__link)[href$=".pdf"]::before {
    color: #fff;
}
.wc-tab a[href$=".pdf"].button-no-icon::before,
.content-area a[href$=".pdf"].button-no-icon::before,
.content-area .button-no-icon a[href$=".pdf"]::before,
.content-area .entry-content .wp-block-image a[href$=".pdf"]::before {
    content: normal;
}



/*
 * Header
 */
.inside-header {
    padding-top: 4px;
    padding-bottom: 12px;
}
.site-logo {
    max-width: 100px;
}
@media (min-width: 769px) {
    .site-logo {
        max-width: 130px;
    }
}
.nav-float-right #site-navigation {
    margin: 0 auto;
}


/*
 * Main Navigation
 */
#site-navigation {
    position: relative;
    top: 4px;
}
.menu-item-has-children {
    cursor: pointer;
}
@media (max-width: 1100px) and (min-width: 769px) {
    .site-logo, .site-branding {
        margin-bottom: 0;
    }
}


/*
 * Footer
 */
.site-footer p a {
    text-decoration: none;
}
.site-footer p a:hover,
.site-footer .wp-block-navigation a.wp-block-navigation-item__content:hover {
    color: #dbdf86;
}
.site-footer .wp-block-columns {
    gap: 60px;
    margin-bottom: 20px;
}
.site-footer .alignfull > .wp-block-group__inner-container {
    max-width: none;
    padding: 20px;
}
.footer-column-logo {
    text-align: center;
}
.footer-column-logo figure {
    max-width: 80%;
    margin: 0 auto 40px auto;
}
.footer-social-icons {
    margin-bottom: 40px;
}
.footer-social-icons a:not(:last-of-type) {
    margin-right: 20px;
    text-decoration: none;
}
.footer-social-icons svg {
    width: 42px;
    height: 42px;
}
.footer-social-icons svg {
    fill: #ffffff;
}
.footer-social-icons svg:hover {
    fill: #dbdf86;
}
.footer-social-icons .li-icon-interior {
    fill: #3F5364;
}
.footer-social-icons .li-icon-interior {
    fill: #3F5364;
}
.footer-column-logo .wp-block-buttons {
    gap: 40px;
}
.site-footer h4 {
    margin-bottom: 0;
}
.site-footer h4:has(+ .wp-block-navigation) {
    margin-bottom: 5px;
}
.site-footer .wp-block-navigation ul {
    margin-bottom: 40px;
}
.site-footer .wp-block-search {
    margin: 20px auto;
}
.footer-copyright {
    overflow: hidden;
}
.footer-copyright p {
    margin: 10px 0;
    font-size: 16px;
}
.wp-block-search__button {
    border-radius: 10px;
}
@media only screen and (min-width: 782px) {
    .site-footer .wp-block-column:not(:first-of-type) {
        padding-top: 60px;
    }
}
@media only screen and (max-width: 1024px) {
    .site-footer .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}
@media only screen and (min-width: 1025px) {
    .site-footer .wp-block-search {
        margin-top: 60px;
        max-width: 60%;
    }
}


/*
 * Yoast Breadcrumbs
 */
.yoast-breadcrumbs {
    background-color: #3f5364;
    color: #fff;
    padding: 10px 0;
}
.yoast-breadcrumbs > span {
    display: block;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 40px;
    padding-left: 40px;
}
.yoast-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}
.yoast-breadcrumbs a:hover,
.yoast-breadcrumbs a:focus,
.yoast-breadcrumbs a:active {
    color: #dbdf86;
}
.yoast-breadcrumbs .breadcrumb_last {
    color: #d9dde0;
}


/*
 * Page Title
 */
.wp-block-group.alignfull.has-background.aws-page-title-container .wp-block-group__inner-container{
    padding-top: 40px;
    padding-bottom: 40px;
}
@media (max-width: 768px) {
    .wp-block-group.alignfull.has-background.aws-page-title-container .wp-block-group__inner-container{
        padding-top: 20px;
        padding-bottom: 30px;
    }
}
.aws-page-title-container .wp-block-query-title {
    margin-bottom: 0;
}


/*
 * Page Hero Cover Block
 */
@media only screen and (max-width: 781px) {
    .aws-wrapper-cover-fill-vertical:where(.wp-block-columns.is-layout-flex) {
        gap: 0;
    }
}
@media only screen and (min-width: 782px) {
    .aws-wrapper-cover-fill-vertical .wp-block-column:first-of-type .wp-block-group__inner-container {
        padding-left: 80px;
    }
}
.aws-wrapper-cover-fill-vertical .wp-block-cover {
    height: 100%;
}


/*
 * Blog
 */
.single-post .entry-meta .cat-links {
    padding-bottom: 20px;
}


/*
 * Search Results
 */
.search-results .site-main article {
    margin-bottom: 60px;
}
.entry-title a {
    color: #B20838;
}
.entry-title a:hover {
    color: #B20838;
    text-decoration: underline;
}


/*
 * Gravity Forms
 */
.gform-theme--framework legend.gform-field-label,
.gform-theme--framework .gfield--input-type-email .gform-field-label,
.gform-theme--framework .gfield--input-type-phone .gform-field-label,
.gform-theme--framework .gfield--input-type-number .gform-field-label,
.gform-theme--framework .gfield--input-type-select .gform-field-label{
    font-weight: bold;
}
.gform-theme--framework .gfield_required_text {
    font-size: 16px;
    color: #666;
}
.gform-theme--framework .gfield input[type="text"],
.gform-theme--framework .gfield input[type="email"],
.gform-theme--framework .gfield input[type="tel"] {
    font-size: 18px;
}
.gform-theme--framework .gfield--type-section {
    margin-top: 40px;
}
.gsection_title {
    color: #39485B;
}
.gform-theme--foundation.gform-theme--framework .gform_footer {
    margin-block-start: 60px;
}
.gform-theme--framework.gform-theme--foundation.gform-theme.gform_wrapper input[type=submit].button.gform_button {
    font-family: "Barmeno Medium";
    text-transform: uppercase;
    font-size: 20px;
    border-radius: 10px;
    padding: 16px 20px;
    border: none;
    box-shadow: none;
}
.gform-theme--framework.gform-theme--foundation.gform-theme.gform_wrapper input[type=submit].button.gform_button:hover {
    background-color: #dbdf86;
}


/*
 * The Events Calendar
 */
.tribe-events .tribe-events-calendar-list .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-list .tribe-events-calendar-list__event-title-link a,
.tribe-events .tribe-events-calendar-list .tribe-events-calendar-list__event-title-link a:hover,
.tribe-events .tribe-events-calendar-list .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-list .tribe-events-calendar-list__event-title-link:visited,
.tribe-events .tribe-events-calendar-latest-past__event-title-link,
.tribe-events .tribe-events-calendar-latest-past__event-title-link a,
.tribe-events .tribe-events-calendar-latest-past__event-title-link a:hover,
.tribe-events .tribe-events-calendar-latest-past__event-title-link:hover,
.tribe-events .tribe-events-calendar-latest-past__event-title-link:visited {
    color: #B20838;
}
.tribe-events-view .type-tribe_events img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}


/*
 * Constant Contact
 */
.ctct-form-wrapper {
    padding-bottom: 40px;
}
.aws-subscribe-row .ctct-form-wrapper {
    width: 90%;
    margin: 0 auto;
}
.ctct-form :not(.ctct-form-field-submit) input {
    width: 100%;
}
@media only screen and (min-width: 769px) {
    .ctct-form :not(.ctct-form-field-submit) input {
        width: 90%;
    }
    .aws-subscribe-row .ctct-form-wrapper {
        width: 50%;
        margin: 0 auto;
    }
    .aws-subscribe-row .ctct-form :not(.ctct-form-field-submit) input {
        width: 100%;
    }
}
.ctct-form-field-submit {
    padding-top: 12px;
}
.ctct-form-wrapper .ctct-submit {
    border-radius: 10px;
}
.ctct-disclosure hr {
    display: none;
}
.ctct-disclosure {
    color: #575760;
}
.aws-subscribe-row .ctct-disclosure {
    color: #fff;
}


/*
 * Home Page
 */
.home.separate-containers .site-main {
    margin-top: 0;
    margin-bottom: 0;
}
.home.separate-containers .inside-article {
    padding-top: 0;
    padding-bottom: 0;
}
.aws-home-hero .wp-block-group {
    border-radius: 10px;
}
@media only screen and (min-width: 769px) {
    .aws-home-hero .wp-block-group {
        max-width: 50%;
        margin-right: 10%;
    }
    .aws-home-hero .wp-block-cover__inner-container {
        display: flex;
        flex-flow: column;
        align-items: end;
    }
    .site-main .aws-home-hero .wp-block-group__inner-container {
        padding: 60px;
    }
}
@media only screen and (min-width: 1400px) {
    .aws-home-hero .wp-block-group {
        max-width: 40%;
    }
}


/*
 * Lunch & Activity Centers
 */
.aws-lunch-activity-center_address,
.aws-lunch-activity-center_phone,
.aws-lunch-activity-center_web {
    margin-bottom: 1em;
}
.aws-lunch-activity-center_address a,
.aws-lunch-activity-center_phone a,
.aws-lunch-activity-center_web a {
    text-decoration: none;
}
.aws-lunch-activity-center_address a::before,
.aws-lunch-activity-center_phone a::before,
.aws-lunch-activity-center_web a::before {
    color: #b20838;
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 120%;
    margin-right: 0.4em;
}
.aws-lunch-activity-center_address a::before {
    content: "\f3c5"; /* location-dot */
}
.aws-lunch-activity-center_phone a::before {
    content: "\f095"; /* phone */
}
.aws-lunch-activity-center_web a::before {
    content: "\f0ac"; /* globe */
}