@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap');

/* ==================== Global ==================== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
}

html body {
    font-family: 'Open Sans', sans-serif;
}

:root {
    --theme-color: rgb(0, 86, 155);
    --theme-color-alt: 0, 86, 155;
    --theme-hover-color: rgb(0, 86, 255);
    --nav-text-color: var(--theme-color);
    --nav-background-color: white;
    --nav-height: 50px;
    --nav-dropdown-background-color: white;
    --nav-dropdown-text-color: var(--theme-color);
    --header-text-color: var(--theme-color);
    --header-background-color: white;
    --header-height: 100px;
    --primary-link-color: #0056b3;
    --primary-link-hover-color: #007bff;
    --nested-link-color: var(--primary-link-color);
    --nested-link-hover-color: var(--primary-link-hover-color);
}

/* ==================== Layout ==================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex-grow: 1;
}

main a:hover {
    text-decoration: none;
    color: var(--theme-hover-color);
}

main p {
    line-height: 2;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* ==================== Icons ==================== */
.fa-chevron-right {
    font-size: 0.8em;
    margin-left: 5px;
    padding-right: 4px;
    vertical-align: 0.1em;
    transition: margin-left 0.3s ease, padding-right 0.3s ease;
}

a:hover > .fa-chevron-right,
button:hover > .fa-chevron-right {
    margin-left: 9px;
    padding-right: 0px;
}

.fa-chevron-down.reactive {
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

a:hover > .fa-chevron-down.reactive {
    padding-top: 9px;
}

/* ==================== Responsive Text ==================== */
@media all and (min-width: 400px) and (max-width: 1000px) {
    h1.responsive { font-size: calc(1.5rem + 1.5vw + 1px); }
    h1.responsive-3 { font-size: calc(1rem + 2vw + 4px); }
    h2.responsive { font-size: calc(1rem + 1.5vw + 1px); }
    h3.responsive { font-size: calc(0.75rem + 1.5vw + 1px); }
    h4.responsive-1 { font-size: calc(1rem + 0.5vw + 3px); }
    h4.responsive-2 { font-size: calc(0.75rem + 1vw + 2px); }
    h4.responsive-3 { font-size: calc(0.5rem + 1.5vw + 1px); }
    .display-1.responsive { font-size: calc(2rem + 6vw + 4px); }
}

@media all and (max-width: 400px) {
    .display-1.responsive { font-size: calc(3.5rem + 4px); }
    h2.responsive { font-size: calc(1.5rem - 1px); }
}

/* Responsive Containers */
@media (min-width: 576px) {
    .container-fluid.responsive { padding-left: 30px; padding-right: 30px; }
}
@media (min-width: 768px) {
    .container-fluid.responsive { padding-left: 45px; padding-right: 45px; }
}
@media (min-width: 992px) {
    .container-fluid.responsive { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container-fluid.responsive { max-width: 1140px; }
}

/* ==================== Header ==================== */
.site-header.transparent {
    --primary-link-color: white;
    --primary-link-hover-color: #007bff;
    --nested-link-color: #0056b3;
}

@media all and (max-width: 841.98px) {
    .site-header.transparent {
        --primary-link-color: #0056b3;
        --nested-link-color: var(--primary-link-color);
    }
}

.site-header.transparent header {
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 100;
}

.header-logo {
    height: 100px;
    justify-content: center;
    text-transform: uppercase;
    display: none;
    flex-direction: column;
    color: var(--primary-link-color);
    text-decoration: none;
}

.header-logo:hover {
    color: var(--primary-link-hover-color);
    text-decoration: none;
}

.header-logo > div {
    align-self: center;
}

.header-logo > div:first-of-type {
    font-size: 1.4rem;
    word-spacing: 0.2rem;
    border-bottom: 1px solid;
    border-color: inherit;
}

.header-logo > div:last-of-type {
    font-size: 1rem;
    font-weight: 700;
}

@media (min-width: 842px) {
    .header-logo { display: flex; }
}

.nav-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    color: #0056b3;
    position: absolute;
    width: calc(100% - 39px - 15px);
    left: calc(39px + 15px);
    height: 50px;
    top: 0;
    z-index: 4;
    text-align: center;
    word-spacing: 0.2rem;
    align-self: center;
    text-decoration: none;
    font-size: 5.5vw;
}

.nav-logo > * {
    align-self: center;
    text-transform: uppercase;
}

.nav-logo:hover { color: var(--primary-link-hover-color); text-decoration: none; }

@media (min-width: 550px) { .nav-logo { font-size: 1.8rem; } }
@media (min-width: 842px) { .nav-logo { display: none; } }

/* Nav links */
header a {
    color: inherit;
}

header a:hover {
    text-decoration: none;
}

header a.active {
    color: var(--primary-link-hover-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.link {
    color: var(--primary-link-color);
    height: 50px;
    min-height: 50px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.link:hover { color: var(--primary-link-hover-color); }

.link.nested {
    color: var(--nested-link-color);
    border-bottom: 1px solid gray;
}

.link.nested:hover { color: var(--nested-link-hover-color) !important; }

/* Menu button */
#menuIcon {
    height: 100%;
    display: inline-block;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 4;
}

#menuIcon .bar {
    width: 25px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--primary-link-color);
}

#menuIcon:hover .bar { background-color: var(--primary-link-hover-color); }

@media (min-width: 842px) { #menuIcon { display: none; } }

/* Dropdown backdrop */
#dropDown {
    background-color: white;
    border-bottom: solid 0.06rem #D2DADE;
    position: absolute;
    width: 100%;
    height: 50px;
    z-index: 2;
}

@media all and (max-width: 841.98px) {
    #dropDown { transition: height 0.5s ease-in; }
}

#dropDown.fullScreen {
    height: 100vh;
    top: 0;
}

@media all and (min-width: 842px) {
    #dropDown { height: 0; border: none; }
}

/* Chevron in nav */
i.fa-chevron-down {
    font-size: 12px;
    padding-left: 5px;
    vertical-align: -2px;
}

/* Nav bar */
nav {
    height: 50px;
    position: relative;
    border-bottom: solid 0.06rem #D2DADE;
}

nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    position: relative;
    z-index: 3;
}

/* Desktop nested links */
@media all and (min-width: 842px) {
    .nested-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        background: white;
        border-top: 3px solid var(--nested-link-color);
        width: 300px;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .link.nested {
        justify-content: flex-start;
        padding: 10px 25px;
    }

    nav > ul > ul:hover .nested-links {
        visibility: visible;
        opacity: 1;
    }
}

/* Mobile nav */
@media all and (max-width: 841.98px) {
    .link { justify-content: flex-start; }

    nav > ul {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 40px;
        transform: translateY(-20em);
        visibility: hidden;
        opacity: 0;
        transition: opacity 1s ease-in 0s, visibility 0s linear 0s, transform 0.8s ease;
        height: auto;
        overflow: scroll;
        max-height: calc(100vh - 50px);
    }

    nav > ul.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0%);
        overflow: auto;
    }

    nav > ul.hide {
        transition: opacity 0.5s ease-out, visibility 0s linear 0.5s, transform 0.8s ease;
    }

    nav .link {
        padding: 10px 0;
        border-bottom: 1px solid gray;
    }

    nav .link.nested {
        padding-left: 0;
        font-size: 1.1rem;
        height: 40px;
        min-height: 40px;
    }

    nav > ul > ul > .nested-links {
        display: flex;
        flex-direction: column;
        position: relative;
        background: none;
        border-top: none;
        width: 100%;
        padding-left: 50px;
    }

    nav > ul > ul:hover .nested-links {
        width: 100%;
        border-top: none;
    }

    nav > ul > ul > .link { border-bottom: none; }
    nav > ul > ul { border-bottom: 1px solid gray; }
    nav > ul > ul > div.nested-links .link.nested:last-of-type { border: none; }
    nav > ul .link:last-of-type { border-bottom: none; }
    nav > ul > ul:hover div.nested-links { position: relative; }
}

/* ==================== Footer ==================== */
.site-footer .donate-banner {
    background-color: rgb(0, 86, 155);
    text-align: center;
    padding: 3rem 1rem;
}

.site-footer .donate-banner h1 { color: white; }

.site-footer .footer-info {
    text-align: center;
    background-color: #333333;
    color: white;
    padding: 3rem 1rem;
}

.site-footer .footer-info .logo {
    font-size: 1.4rem;
    word-spacing: 0.2rem;
}

/* ==================== Hero Component ==================== */
.hero-container {
    --aspect-ratio: 2.25;
    --tablet-height: 50%;
    position: relative;
    background-size: 575.98px calc(575.98px / var(--aspect-ratio));
    background-position: right top;
    background-repeat: no-repeat;
    padding-top: calc(0.56 * 575.98px);
}

@media (min-width: 575.98px) {
    .hero-container {
        padding-top: var(--tablet-height);
        background-position: center top;
        background-size: contain;
    }
}

@media (min-width: 991.98px) {
    .hero-container {
        height: calc(100vw / var(--aspect-ratio));
        padding-top: unset;
    }
}

/* ==================== Home Page ==================== */
.home-hero {
    --aspect-ratio: calc(1920 / 1080);
    background-image: url('../assets/couple-daylight-elderly-1920x1080.jpg');
}

.scroll-down {
    position: absolute;
    top: calc(100vw / var(--aspect-ratio) - 50px);
    left: 0;
    width: 100%;
    text-align: center !important;
    color: white;
    z-index: 100;
}

.scroll-down > i {
    font-size: 20px;
    margin: auto !important;
}

.home-hero .hero-content {
    position: absolute;
    z-index: 1;
    color: white;
}

.home-hero .hero-content h4 { line-height: 1.8; }
.home-hero .hero-content h1 { font-weight: 600; }

@media (min-width: 992px) {
    .home-hero .hero-content { width: 50%; left: 3%; top: 35%; }
}

@media (min-width: 1200px) {
    .home-hero .hero-content { width: 45%; left: 6%; }
}

@media (max-width: 991.98px) {
    .scroll-down { display: none; }
    .home-hero .hero-content {
        position: static;
        background-color: var(--theme-color);
    }
}

/* Home cards */
.marie-image { width: 100%; border-radius: 0.5rem; }
.image-container { position: relative !important; }
.link-container:hover { cursor: pointer; }
.link-container .link-text { border-bottom: 1px solid black; transition: border-bottom 0.5s ease; }
.link-container:hover .link-text { border-bottom: 1px solid transparent; color: var(--theme-color); }
.link-container:hover .overlay { visibility: visible; background-color: rgba(var(--theme-color-alt), 0.8); }
.link-container:hover .overlay > .content { opacity: 1; }

.overlay {
    flex-direction: row;
    justify-content: center;
    display: flex;
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: background-color 0.5s ease, visibility 0.5s ease;
    border-radius: 0.5rem;
}

.overlay > .content {
    transition: opacity 0.5s ease;
    opacity: 0;
    color: white;
    align-self: center;
}

p.description { line-height: 1.5; margin-bottom: 0; }

.center-me { display: flex; flex-direction: column; justify-content: center; }

.building {
    background: rgb(var(--theme-color-alt));
    overflow: hidden;
    height: 100%;
    min-height: 550px;
    line-height: 2;
}

.building img { object-fit: cover; opacity: 0.4; width: 100%; height: 100%; }

/* ==================== Interior Hero (Forest) ==================== */
.forest-hero {
    --aspect-ratio: calc(5760 / 1920);
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)), url('../assets/forest-1920x640.jpg');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    height: calc(100vw / var(--aspect-ratio));
}

.forest-hero .hero-content {
    position: absolute;
    z-index: 1;
    color: white;
    padding-top: 2%;
    padding-left: 7%;
}

@media all and (max-width: 575.98px) {
    .forest-hero {
        height: calc(575.98px / var(--aspect-ratio));
        background-size: cover;
        background-position: center;
        text-align: center;
    }
}

/* ==================== Marie Page ==================== */
.marie-page .col-md-6.image-container { text-align: center; }
.marie-page .col-md-6.image-container img { width: 80%; }

/* ==================== Foundation Page ==================== */
.otro-blockquote {
    font-size: 1.4em;
    font-family: Open Sans;
    font-style: italic;
    color: #555555;
    padding: 1.2em 30px 1.2em 75px;
    border-left: 8px solid #78C0A8;
    line-height: 1.6;
    position: relative;
    background: #EDEDED;
}

.otro-blockquote p { line-height: 1.5; }

.otro-blockquote::before {
    font-family: Arial;
    content: "\201C";
    color: #78C0A8;
    font-size: 4em;
    position: absolute;
    left: 10px;
    top: -10px;
}

.otro-blockquote::after { content: ''; }

.otro-blockquote span {
    display: block;
    color: #333333;
    font-style: normal;
    font-weight: bold;
    margin-top: 1em;
}

/* ==================== FAQ Page ==================== */
.faq-item:hover { color: var(--theme-hover-color); cursor: pointer; }
.faq-item .question { line-height: 1.5; }
.faq-item { transition: margin-bottom 0.4s ease-in-out; }
.faq-item.is-active { color: var(--theme-hover-color); margin-bottom: 16px; }
.faq-item > i { transition: transform 0.4s ease-in-out; }
.faq-item.is-active > i { transform: rotate(90deg); }

.faq-page hr { border-color: var(--theme-color); width: 100%; }
.faq-page .credit a { color: unset; }
.faq-page .credit a:hover { text-decoration: underline; color: black; }

.answer {
    white-space: pre-line;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    height: 0;
    visibility: hidden;
    opacity: 0;
}

.answer.visible { visibility: visible; opacity: 1; }
.answer.hidden { visibility: hidden; opacity: 0; height: 0; }

/* ==================== Hospice vs Palliative ==================== */
.hvp-page .section { white-space: pre-line; }

.hvp-page .title {
    background-color: white;
    z-index: 1;
    text-align: center;
    border-bottom: 1px solid rgb(99, 99, 99);
    width: 100%;
}

@media all and (max-width: 991.98px) {
    .hvp-page .title { position: sticky; position: -webkit-sticky; top: 0; }
}

/* ==================== Grantee Impact ==================== */
.grantee-page .fa-external-link-alt { padding-left: 10px; font-size: 15px; }

@media all and (min-width: 576px) {
    .grantee-page ul { width: 90%; margin: auto; }
}
