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

:root {
    --global-palette1: #158650;
    --global-palette2: #19547b;
    --global-palette3: #27241d;
    --global-palette4: #423d33;
    --global-palette5: #504a40;
    --global-palette6: #625d52;
    --global-palette7: #e8e6e1;
    --global-palette8: #faf9f7;
    --global-palette9: #ffffff;
    --global-palette10: #1b202b;
    --global-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --global-heading-font-family: Montserrat, sans-serif;
    --global-primary-nav-font-family: Montserrat, sans-serif;
}
body {
    color: var(--global-palette4);
    font-family: var(--global-body-font-family);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    min-height: 100dvh;
}
h1,
h2,
h3,
h4 {
    font-family: var(--global-heading-font-family);
    margin: 0;
}
h1 {
    font-size: 25px;
    line-height: 1.3;
    text-wrap: pretty;
    &.home-page {
        text-align: center;
    }
}
@media (width >= 768px) {
    h1 {
        font-size: 39px;
    }
}
h2 {
    color: var(--global-palette1);
    text-wrap: pretty;
    font-size: 1.3em;
    &.alt {
        color: black;
        font-size: 30px;
        font-weight: 700;
        font-family: Montserrat;
        margin-bottom: 0.5em;
    }
}
@media (width >= 768px) {
    h2.alt {
        font-size: 38px;
    }
}
h3 {
    color: var(--global-palette1);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.5;
    font-family: "Roboto Condensed";
    text-wrap: pretty;
    &.alt {
        color: white;
    }
}
sup {
    font-size: 65%;
    line-height: 0;
    vertical-align: super;
    position: relative;
    top: -0.3em;
}
#skip a {
    display: block;
    position: absolute;
    left: -999px;
    top: -999px;
}

#skip a:focus {
    left: 0;
    top: 0;
    padding: 3px;
    background: #ffc;
    border: 1px solid #990000;
}

.skip-link:focus {
    top: 0;
    left: 0;
    text-decoration: underline;
}
a:link,
a:hover,
a:focus,
a:visited,
a:active {
    color: var(--global-palette1);
}
header {
    background-color: var(--global-palette2);
    color: white;
}
main {
    min-height: calc(100dvh - 357px);
}
.page-frame {
    max-width: 1200px;
    margin: 0 auto;
}
.page-frame-inner {
    padding: 1rem;
}
.page-frame-1200 {
    max-width: 1200px;
    margin: 0 auto;
}
.page-frame-925 {
    max-width: 925px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}
.logo {
    max-width: 270px;
}
.nav-container {
    display: flex;
    justify-content: center;
}
nav ul,
nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-top {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
@media (width >= 768px) {
    .nav-top {
        justify-content: flex-end;
        margin-bottom: 0;
    }
}
.nav-top ul {
    display: inline-flex;
    gap: 25px;
    & a,
    & a:visited {
        color: white;
        font-size: 20px;
        display: inline-block;
        text-decoration: none;
    }
    & a:hover,
    & a:hover {
        text-decoration: none;
        border-bottom: 1px solid white;
    }
    & a.active,
    & a.active:hover {
        text-decoration: none;
        border-bottom: 1px solid white;
    }
}

/* new header BEGIN */
.header {
    background-color: var(--global-palette2);
}
.header-inner {
    color: white;
    display: grid;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-left: 0;
    & .logo-box {
        text-align: center;
    }
}
@media (width >= 768px) {
    .header-inner {
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        align-items: center;
        & .logo-box {
            text-align: left;
        }
    }
    .address-box {
        position: absolute;
        right: 0;
        top: 0;
        margin-top: 1rem;
        margin-right: 1rem;
    }
    .nav-box {
        text-align: right;
        align-self: flex-end;
    }
}
/* new header END */

.hero {
    background-color: var(--global-palette2);
    color: white;
    display: flex;
    flex-direction: column;
}
.schedule {
    display: grid;
    grid-template-columns: 1fr;

    padding-top: 154px;
    padding-bottom: 80px;

    & img {
        box-sizing: border-box;
        height: auto;
        max-width: 100%;
        vertical-align: bottom;
    }
}
@media (width >= 768px) {
    .schedule {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}
.schedule-col1 {
    display: grid;
    place-items: center;
}
.schedule-col2 {
    display: grid;
    align-items: center;
    justify-content: center;
    & ul {
        padding-left: 1rem;
    }
}
@media (width >= 768px) {
    .schedule-col2 {
        display: grid;
        align-items: center;
        justify-content: left;
    }
}

.svg-box1 {
    display: flex;
    background-color: white;
    & svg {
        fill: var(--global-palette8);
        margin-bottom: -1px;
    }
}
.what-to-expect {
    background-color: var(--global-palette8);
    padding: 80px 0;
}
.card-deck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (width >= 768px) {
    .card-deck {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.card {
    box-shadow: 0px 20px 30px 0px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background: var(--global-palette9, #ffffff);
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
}
.card-headline {
    color: var(--global-palette1);
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    font-family: Montserrat;
}

.svg-box2 {
    display: flex;
    background-color: var(--global-palette8);
    & svg {
        fill: var(--global-palette2);
        margin-bottom: -1px;
    }
}

.end-cap {
    background-color: var(--global-palette2);
    padding: 80px 0;
}
.end-cap-inner {
    display: grid;
    place-items: center;
}

a.button-ghost {
    color: #ffffff;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-color: #ffffff;
    border-top-style: solid;
    border-right-color: #ffffff;
    border-right-style: solid;
    border-bottom-color: #ffffff;
    border-bottom-style: solid;
    border-left-color: #ffffff;
    border-left-style: solid;
    padding-top: 8px;
    padding-right: 24px;
    padding-bottom: 8px;
    padding-left: 24px;
    width: fit-content;
    text-decoration: none;
    border-width: 1.66234px;
    transition: background-color 0.25s ease, color 0.25s ease;
    &:hover {
        background-color: white;
        color: #158650;
        & svg {
            fill: #158650;
        }
    }
}
a.button-ghost:visited {
    color: #ffffff;
    &:hover {
        background-color: white;
        color: #158650;
        & svg {
            fill: #158650;
        }
    }
}

footer {
    background-color: var(--global-palette10);
    padding: 40px 0;
}
.footer-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 10px;
    grid-column-gap: 20px;
    padding: 40px 0;
    & a {
        padding-left: calc(1.2em / 2);
        padding-right: calc(1.2em / 2);
        padding-top: calc(0.6em / 2);
        padding-bottom: calc(0.6em / 2);
        color: #19a05f;
        text-decoration: none;
        white-space: nowrap;
        &:hover {
            color: var(--global-palette7);
        }
    }
    & a.active,
    & a.active:visited {
        color: white;
    }
}

.last-links {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    & p {
        color: #8496b0;
        font-size: 14px;
    }
    & a,
    & a:visited {
        color: #8496b0;
        font-size: 14px;
        text-decoration: none;
        &:hover {
            color: white;
            text-decoration: underline;
        }
    }
}
@media (width >= 768px) {
    .last-links {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-content: space-between;
    }
}

.card svg {
    width: 50px;
    height: auto;
    fill: var(--global-palette1);
}

.pt-15 {
    padding-top: 15px;
}
.pt-40 {
    padding-top: 40px;
}
.pt-60 {
    padding-top: 60px;
}
.mb-20 {
    margin-bottom: 20px;
}
.pb-40 {
    padding-bottom: 40px;
}
.width-lock {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}

/* *********************** */
.bravo {
    background-color: var(--global-palette7);
    color: black;
    place-items: center;
    padding: 30px 0;
}
blockquote {
    font-style: italic;
    font-size: 25px;
    & > p {
        margin: 0;
    }
    & cite {
        font-size: 18px;
        text-align: right;
        display: block;
    }
}
.bravo-content-container {
    & h1 {
        font-size: 32px;
        text-align: left;
    }
}
.service-times {
    margin: 1rem 0;
}
.service-times p {
    margin: 0;
}

/* page */
@media (width >= 768px) {
    .page {
        & h1 {
            font-size: 30px;
        }
    }
    .page {
        & h3 {
            margin-top: 2rem;
            font-size: 22px;
            letter-spacing: 1px;
            font-weight: 600;
        }
    }
}

.two-col-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    & p {
        margin: 0;
    }
}

.many-h1 {
    & h1 {
        margin-bottom: 0;
        & + p {
            margin-top: 0;
        }
    }
    & p + h1 {
        margin-top: 2rem;
    }
}

/* subnav4 */
@media (width >= 920px) {
    .nav-and-content {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 380px 1fr;
    }
}
.subnav4 {
    & summary:hover {
        cursor: pointer;
    }
    & summary::after {
        content: url("chevron-down-solid-full.svg");
        display: inline-block;
        margin-left: 5px;
        width: 12px;
        transition: transform 0.3s;
    }
    & details[open] summary::after {
        transform: rotate(-180deg);
    }
    & summary::marker {
        content: "";
    }
    & summary::-webkit-details-marker {
        display: none;
    }
    & details {
        text-decoration: underline;
        color: #116d41; /* darker variant for a11y on light green bg */
    }
    & details summary {
        padding: 1rem;
        text-align: center;
    }
    & details[open] summary {
        padding-bottom: 0;
        text-align: center;
    }
    & ul {
        margin-top: 0;
        margin-bottom: 0;
        padding-left: 2rem;
    }
    & li {
        list-style-type: circle;
        color: black;
    }
    & li:has(.active) {
        list-style-type: disc;
    }
    & li span.active {
        color: black;
        text-decoration: none;
        display: inline-block;
    }
    & li a {
        color: #116d41; /* darker variant for a11y on light green bg */
    }
    & .nav-block {
        position: relative;
        & > details {
            position: relative;
            width: 100%;
        }
    }
    & .nav-center-box {
        max-width: 400px;
        margin: 0 auto;
        justify-content: flex-start;
    }
}
