﻿:root {
    --theme-dark: #2e1a47;      /* Dark Navy*/
    --theme-light: #878cb4;     /* Blue Grey */
    --theme-primary: #961b2e;   /* Wine */
    --theme-secondary: #f8f5ee; /* Oatmeal */
    --theme-tertiary: #00cc99;  /* Caribbean Green */
}

html {
    font-size: 18px;
    /*Bootstrap will then take that value and use it via rems to set values*/
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /*font-family: Lato, sans-serif;*/
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400; /*Use a value from 200 to 900*/
    font-style: normal;
    /*font-size: 18px;*/ /* seems to break stuff if we do this here */
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 300; /*Use a value from 200 to 900*/
    font-style: normal;
}

    h1.sans, h2.sans, h3.sans, h4.sans, h5.sans, h6.sans {
        font-family: "Source Sans 3", sans-serif;
    }

h1,h2 {
    font-weight: 600;
}

h3,h4 {
    font-weight: 700;
}

h5 {
    font-weight: 400;
    font-size: 18px!important;
}

h6 {
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
}

small, .small {
    font-size: 0.8em;
    line-height: 1.5em;
}

small {
    display: inline-block; /* enables line-height for 'small' tag */
}

/* ============ input validation ============ */

/* Styles the parent element if it contains a direct child with the class 'child-class' */
/*.parent-class > .child-class {
    == Your styles here ==
}*/

.form-floating > .input-validation-error {
    border-color: red !important;
}

.validation-summary-errors ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
/* ======================== */

.bg-theme-dark {
    background-color: var(--theme-dark);
}

.bg-theme-light {
    background-color: var(--theme-light);
}

.bg-theme-primary {
    background-color: var(--theme-primary);
}

.bg-theme-secondary {
    background-color: var(--theme-secondary);
}

.bg-theme-tertiary {
    background-color: var(--theme-tertiary);
}

.bg-theme-pattern {
    background-color: var(--theme-secondary)!important;
    background-image: url("../images/paper-bg.webp")!important;
}

.text-theme-dark {
    color: var(--theme-dark);
}

.text-theme-light {
    color: var(--theme-light);
}

.text-theme-primary {
    color: var(--theme-primary);
}

.text-theme-secondary {
    color: var(--theme-secondary);
}

.text-theme-tertiary {
    color: var(--theme-tertiary);
}

.btn-theme-dark {
    border: 0;
    background-color: var(--theme-dark);
    color: white;
}
    .btn-theme-dark:hover, .btn-theme-dark:focus, .btn-theme-dark:active, .btn-theme-dark.active, .open > .dropdown-toggle.btn-theme-dark {
        border: 0 !important;
        background-color: var(--theme-light) !important;
        color: var(--theme-dark) !important;
    }

.btn-theme-light {
    border: 0;
    background-color: var(--theme-light);
    color: var(--theme-dark);
}

    .btn-theme-light:hover, .btn-theme-light:focus, .btn-theme-light:active, .btn-theme-light.active, .open > .dropdown-toggle.btn-theme-light {
        border: 0 !important;
        background-color: var(--theme-light) !important;
        color: var(--theme-dark) !important;
    }

.btn-theme-primary {
    border: 0;
    background-color: var(--theme-primary);
    color: #fff;
}
    .btn-theme-primary:hover, .btn-theme-primary:focus, .btn-theme-primary:active, .btn-theme-primary.active, .open > .dropdown-toggle.btn-theme-primary {
        border: 0 !important;
        background-color: var(--theme-primary) !important;
        color: #fff !important;
    }

.btn-theme-secondary {
    border: 0;
    background-color: var(--theme-secondary);
    color: var(--theme-primary);
}
    .btn-theme-secondary:hover, .btn-theme-secondary:focus, .btn-theme-secondary:active, .btn-theme-secondary.active, .open > .dropdown-toggle.btn-theme-secondary {
        border: 0 !important;
        background-color: var(--theme-light) !important;
        color: var(--theme-dark) !important;
    }

.btn-theme-tertiary {
    border: 0;
    background-color: var(--theme-tertiary);
}
    .btn-theme-tertiary:hover, .btn-theme-tertiary:focus, .btn-theme-tertiary:active, .btn-theme-tertiary.active, .open > .dropdown-toggle.btn-theme-tertiary {
        border: 0;
        background-color: var(--theme-tertiary);
    }


.btn-theme-outline-primary {
    border-width: 1px;
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background-color: transparent;
}

    .btn-theme-outline-primary:hover, .btn-theme-outline-primary:focus, .btn-theme-outline-primary:active, .btn-theme-outline-primary.active, .open > .dropdown-toggle.btn-theme-outline-primary {
        border-width: 1px !important;
        border-color: var(--theme-primary) !important;
        color: var(--theme-primary) !important;
        background-color: transparent !important;
    }

.box-theme-secondary {
    background-color: var(--theme-secondary);
    background-image: url("../images/paper-bg.webp");
    border-radius: 15px;
    -webkit-box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.15);
    box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.15);
}

/* ============ form-floating placeholder ============ */
/*.form-control:focus::placeholder {
    color: black !important;
}*/
/*or*/
.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext:focus::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.5;
}

/* ============ tooltips ============ */
.tooltip-inner {
    background-color: var(--theme-primary);
    color: #fff;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: var(--theme-primary);
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: var(--theme-primary);
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: var(--theme-primary);
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: var(--theme-primary);
}

/* ============ input number spinner ============ */
/* Chrome, Safari, Edge, Opera */
input.no-spin::-webkit-outer-spin-button,
input.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input.no-spin {
    -moz-appearance: textfield;
}

/* ============ list spinner ============ */
#list-spinner {
    display: none;
}

#no-results {
    display: none;
}

/*.btn-theme-primary:hover {
    color: #fff !important;
}*/

.nav-wrapper {
    background-color: white;
}

.nav-spacer {
    width: 245px;
    height: 10px;
}

/* ============ bootstrap overrides ============ */

.card {
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

/*.card {
    transition: box-shadow 0.3s ease-in-out;
}

    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }*/

/*.btn-primary, .btn-primary:hover {
    color: #fff;
    background-color: #e14f6d !important;
    border-color: #e14f6d !important
}*/

/*.bg-silver {
    background-color: #dee2e6;
}*/

/* Tab modifications */

.nav-theme-tabs {
    margin-bottom: 0!important;
    border-bottom: 0!important;
    
}
.nav-theme-tabs .nav-theme-item {
    margin-left: 10px!important;
}

    .nav-theme-tabs .nav-theme-item:first-child {
        margin-left: 0!important;
    }

    .nav-theme-tabs .nav-theme-link {
        border: 1px solid var(--bs-border-color) !important;
        color: var(--theme-primary) !important;
    }

        .nav-theme-tabs .nav-theme-link.active {
            border-bottom-width: 0 !important;
            color: black !important;
            /*set the height to be its current height plus 1 pixel*/
            height: calc(100% + 1px);
        }

.tab-theme-content {
    border-top: 1px solid var(--bs-border-color) !important;
    /* When the tabs are in the root of container we don't need to deduct -1px from the tab-content */
    /*margin-top: -1px !important;*/
}

/* ============ hero ============ */
header.masthead {
    position: relative;
    overflow: hidden;
    padding-top: 7rem;
    padding-bottom: 7rem;
    background-repeat: no-repeat;
    background-position: top right;
    background-attachment: scroll;
    background-size: cover;
    /*background-image: url("../images/cover-photo-14.jpg");*/
    background-image: url("../images/home-page-header.webp");
}

    header.masthead .masthead-content {
        min-width: 150px;
        min-height: 150px;
        max-width: 700px;
        padding: 20px;
        margin-left: 100px;
    }

/* the box mask */
/*.masthead-box {
    min-width: 150px;
    min-height: 150px;
    max-width: 750px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-left: 100px;
    z-index: 1;
}*/

/* the offset border effect */
/*.masthead-box-underlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    margin: -10px;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.5);
}*/

@media (max-width: 575.98px) {
    header.masthead {
        display: none;
    }
}

@media (max-width: 767.98px) {

    header.masthead {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 992px) {

    header.masthead {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

@media (min-width: 1200px) {

    header.masthead {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }
}

@media (min-width: 1500px) {

    header.masthead {
        padding-top: 15rem;
        padding-bottom: 15rem;
    }
}

/* ============ mega menu ============ */

.col-megamenu.list-columns {
    column-count: 1;
    column-gap: 0;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .col-megamenu.list-columns {
        column-count: 2;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    .navbar .dropdown-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: -10px;
        right: 0;
        margin-top: -7px;
        margin-left: 0;
    }

    .navbar .dropdown-hover .megamenu {
        margin-top: 5px;
    }

    .col-megamenu.list-columns {
        column-count: 4;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .col-megamenu.list-columns {
        column-count: 5;
    }
}

/* ============ home ribbon ============ */

.home-ribbon-nav li:not(:last-child) {
    border-bottom: solid 1px white;
}

@media (min-width: 992px) {

    .home-ribbon-nav li:not(:last-child) {
        border-bottom: none;
    }

    .home-ribbon-nav li + li a {
        border-left: solid 1px white;
    }
}


/* ============ home cards ============ */

.info-card {
    padding: 10px 0 0 10px;
}

.info-card-nav li + li {
    border-left: solid 1px;
}

.info-card-nav a {
    /*font-size: 13px;*/
}

/* ============ horizontal divider ============ */

.divider {
    align-items: center;
    display: flex;
    width: 100%;
    margin: 50px 0 50px 0;
}

.divider__text {
    padding: 0 20px 0 20px;
}

.divider::before,
.divider::after {
    content: '';
    border-top: 1px solid rgb(203 213 225);
    flex: 1;
}

h3.curvy {
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("../images/curvy.svg");
    background-size: 100% 30px;
}

    h3.curvy span {
        background-color: white;
        padding: 0 10px;
    }

/* ============ listings ============ */

.list-item {
    padding: 10px 0 0 10px;
}

    .list-item a {
        position: relative;
    }

    .list-item h5 {
        display: block;
        line-height: 1.5em;
        height: 4.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
    }

.list-img {
    margin: -10px 10px 10px -10px;
    border-style: solid;
    border-width: 1px;
    border-color: var( --bs-gray-200);
}

/* ============ footer ============ */

footer {
    padding: 40px 0 40px 0;
    background-color: var(--theme-dark);
}

/* ============ tab to top ============ */

.tap-top {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 8;
    display: none;
    color: #fff;
    text-align: center;
    background: var(--theme-primary);
    border: none;
    font-size: 22px;
    padding: 7px;
    cursor: pointer;
}


/* ============ nav dropdown animation ============ */

.dropdown-toggle::after {
    transition: transform 0.15s linear;
}

.show.dropdown .dropdown-toggle::after {
    transform: translateY(4px);
}

/* ============ min media queries ============ */

/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    #search-anything-box {
        width: 400px;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
}


/* ============ max media queries ============ */

/*
        Why subtract .02px? Browsers don’t currently support range context queries, so we work around the limitations of min- and max- prefixes and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision.
        */

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {

    .nav-link.primary {
        border: solid 1px #6c757d;
        border-radius: 0.375rem;
        text-align: center;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
}

/* X-Large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) {
}

/* XX-Large devices (larger desktops) */
/* No media query since the xxl breakpoint has no upper bound on its width */

/* ============ checkybox ============ */
.checkybox {
    padding: 10px;
    display: inline-flex;
    align-items: center; /* Centers items vertically */
}

    /*.checkybox:hover {
        background-color: var(--theme-secondary);
    }*/

    .checkybox .checked, .checkybox .unchecked {
        font-size: 1.5rem;
        color: var(--theme-primary);
        padding-right: 10px;
    }

    .checkybox input[type="checkbox"],
    .checkybox input[type="radio"],
    .checkybox .checked {
        display: none;
    }

        .checkybox input[type="checkbox"]:checked ~ .checked,
        .checkybox input[type="radio"]:checked ~ .checked {
            display: inline-block;
        }

        .checkybox input[type="checkbox"]:checked ~ .unchecked,
        .checkybox input[type="radio"]:checked ~ .unchecked {
            display: none;
        }

        .checkybox input[type="radio"]:checked ~ .checked + span {
            font-weight: 600;
        }

    .checkybox.nopad, .checkybox.nopad .checked, .checkybox.nopad .unchecked {
        padding: 0;
    }

/* ============ offcanvas overlay spinner ============ */
.offcanvasoverlay {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .offcanvasoverlay.show {
        display: flex;
    }