﻿/*--------------------------------------------------------------
# main.css
# Site-specific custom styles for Crane Museum
# NOTE: Base styles (reset, typography, forms, etc.) live in
# cranetheme.css. This file contains only layout, components,
# and custom styles unique to this site.
--------------------------------------------------------------*/

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    --crane-blue: #38526b;
    --crane-blue-dark: #2c4054;
    --crane-blue-darker: #1d354d;
    --crane-green: #aeb885;
    --white: #ffffff;
    --dark-gray: #444;
    --text-gray: #333;
    --max-width: 960px;
}

/* ============================================
   2. BASE
   ============================================ */
body {
    color: var(--text-gray);
    background-color: var(--crane-blue);
    background-image: url('../CraneMuseum/images/bg-img-high-tech.jpg');
    background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

    body.custom-background {
        background-attachment: unset;
    }

.uppercase {
    text-transform: uppercase;
}

figcaption {
    font-style: italic;
}

img:is([sizes="auto" i], [sizes^="auto," i]) {
    contain-intrinsic-size: 3000px 1500px;
}

/* ============================================
   3. LAYOUT
   ============================================ */
#primary:not(.craneMuseumStartPage) {
    background-color: #fff;
    padding: 40px 0;
    color: var(--text-gray);
}

.hentry,
header.entry-header,
h1.entry-title {
    margin: 0px auto !important;
}

.content-wrapper {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 14px;
}

/* ============================================
   4. SITE HEADER
   ============================================ */
header.site-header {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
}

.site-branding {
    text-align: left;
    width: 315px;
    justify-content: flex-start;
}

/* ============================================
   5. NAVIGATION
   ============================================ */
.main-navigation {
    display: flex;
    flex-grow: 2;
    justify-content: flex-end;
    margin: auto 0;
    align-items: center;
}

    .main-navigation a {
        color: var(--white);
        text-transform: uppercase;
        font-family: din-condensed, sans-serif;
        font-weight: 400;
        font-size: 26px;
        letter-spacing: .1em;
    }

        .main-navigation a:link,
        .main-navigation a:visited {
            color: var(--white);
        }

        .main-navigation a:hover,
        .main-navigation a:focus {
            color: var(--crane-green);
        }

        .main-navigation a span.dashicons {
            line-height: 44px;
            font-size: 23px;
        }

    .main-navigation svg {
        width: 18px;
        height: 18px;
        fill: var(--white);
    }

        .main-navigation svg path {
            fill: var(--white);
        }

        .main-navigation svg.cart {
            width: 20px;
            height: 20px;
            overflow: visible;
            fill: var(--white);
        }

    .main-navigation a:hover svg path {
        fill: var(--crane-green);
    }

.headerIcons path:hover {
    fill: var(--crane-green);
}

/* Sub menu */
ul.sub-menu {
    background-color: var(--crane-blue);
    padding: 9px 5px 9px 0;
    border-radius: 2px;
    white-space: normal;
}

    ul.sub-menu li {
        margin-bottom: 5px;
    }

        ul.sub-menu li a {
            line-height: 1;
            letter-spacing: 0;
            width: 225px !important;
        }

/* ============================================
   6. SECONDARY MENU
   ============================================ */
#secondaryMenu {
    max-width: var(--max-width);
    display: flex;
    border-top: 1px solid var(--white);
    margin: -20px auto 10px;
    padding-top: 5px;
}

    #secondaryMenu span {
        text-transform: uppercase;
        font-size: 28px;
        font-family: din-condensed, sans-serif;
        letter-spacing: .075em;
    }

        #secondaryMenu span a {
            text-decoration: none;
            color: var(--white);
        }

    #secondaryMenu ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

        #secondaryMenu ul li {
            margin: 0 0 0 25px;
            font-size: 80%;
        }

            #secondaryMenu ul li a {
                text-decoration: none;
                color: var(--white);
                font-style: italic;
                line-height: 50px;
                font-size: 20px;
            }

                #secondaryMenu ul li a:hover {
                    color: var(--crane-green);
                }

            #secondaryMenu ul li.current_page_item a {
                font-style: normal;
            }

/* ============================================
   7. RESPONSIVE MENU
   ============================================ */
div#responsive-menu-wrapper div#responsive-menu-title {
    font-size: 42px;
    letter-spacing: .1em;
    padding: 0 5%;
}

a.responsive-menu-item-link {
    text-transform: uppercase;
    letter-spacing: .1em;
    border: none !important;
}

    a.responsive-menu-item-link span {
        line-height: 40px;
    }

/* ============================================
   8. FOOTER
   ============================================ */
footer.site-footer {
    opacity: 1;
}

footer div {
    vertical-align: top;
}

footer a:hover {
    color: var(--white);
}

footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: var(--white);
    margin-block: 1rem 0;
    background-color: transparent;
    padding: 0;
}


footer .email {
    display: block;
}

footer .footerAlert {
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--crane-green);
    line-height: 1.15;
    font-size: 1rem;
    border-bottom: 1px solid var(--white);
}

.footerWrapper {
    color: var(--white);
    line-height: 1.6;
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--white);
    padding: 30px 0;
    display: flex;
}

    .footerWrapper > div {
        justify-content: space-evenly;
        flex-grow: 2;
        max-width: 50%;
    }

    .footerWrapper p {
        margin: 0 0 16px 0;
    }

    .footerWrapper span {
        color: var(--crane-green);
        font-family: din-condensed, sans-serif;
        letter-spacing: .1em;
        text-transform: uppercase;
        display: block;
        font-size: 26px;
        line-height: 1;
    }

        .footerWrapper span.contact {
            margin-top: 20px;
        }

.footerMenu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .footerMenu ul li a {
        font-family: din-condensed, sans-serif;
        color: var(--white);
        text-decoration: none;
        text-transform: uppercase;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: .1em;
    }

        .footerMenu ul li a:hover {
            color: var(--crane-green);
        }

footer .small {
    font-size: 90%;
    color: #d8d8d8;
    font-family: din-condensed;
    letter-spacing: .075em;
    line-height: 1.4em;
    margin-top: 1.4rem;
}

.footerMenu span.dashicons {
    font-family: dashicons;
    color: var(--white);
}

.footerMenu .facebookIcon {
    width: 22px;
    height: 22px;
    display: block;
}

    .footerMenu .facebookIcon:hover path {
        fill: var(--crane-green);
    }

.footerHours a,
.footerHours a:visited {
    color: var(--white);
}

    .footerHours a:hover,
    .footerHours a:focus {
        color: var(--crane-green);
    }

.footerLocation {
    text-align: right;
}

.site-info {
    font-size: 75%;
    text-align: right;
}

    .site-info a:link,
    .site-info a:hover,
    .site-info a:visited,
    .site-info a:active {
        color: var(--white);
        text-decoration: none;
    }

a.privacyLink {
    float: left;
}

/* ============================================
   9. HOME PAGE
   ============================================ */
#homeHero {
    color: var(--white) !important;
    margin-bottom: 30px;
    display: none;
}

    #homeHero h1.entry-title {
        font-size: 50px;
        color: var(--white);
        letter-spacing: -.01em;
    }

    #homeHero div.entry-content,
    #homeHero div.entry-content p {
        margin-top: 0;
        font-style: italic;
        font-size: 18px;
        line-height: 1.5em;
    }

#homeFeatures {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    justify-content: space-between;
    border-bottom: 1px solid var(--white);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.homeBlock {
    display: block;
    width: 460px;
    height: 230px;
    margin-bottom: 35px;
}

    .homeBlock a {
        display: flex;
        flex-flow: column-reverse;
        width: 100%;
        height: 100%;
        background-position: center center;
        background-size: cover;
        text-decoration: none;
        border: 1px solid var(--white);
    }

        .homeBlock a span {
            background-color: var(--crane-green);
            color: var(--crane-blue-dark);
            font-style: italic;
            font-size: 16px;
            display: flex;
            padding: 2px 0 0 8px;
        }

        .homeBlock a:hover span {
            background-color: var(--crane-blue);
            color: var(--crane-green);
        }

        .homeBlock a:hover {
            border: 1px solid var(--crane-green);
        }

/* ============================================
   10. ARCHIVE POSTS
   ============================================ */
.archivePosts {
    max-width: var(--max-width);
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .archivePosts:after {
        content: "";
        width: 31%;
    }

    .archivePosts a {
        display: flex;
        width: 31%;
        text-align: center;
        padding: 20px 0;
        text-decoration: none;
        background-size: cover;
        min-height: 200px;
        justify-content: center;
        flex-direction: column;
        margin-bottom: 30px;
        box-shadow: 2px 2px 5px #33333352;
        border-radius: 3px;
    }

    .archivePosts h3,
    .archivePosts h4 {
        line-height: 1;
        color: var(--white);
        background-color: #38526b7d;
        padding: 12px;
        transition: all 300ms linear;
    }

    .archivePosts a:hover h3,
    .archivePosts a:hover h4 {
        background-color: var(--crane-blue);
    }

/* ============================================
   11. IMAGE ALIGNMENT
   ============================================ */
/*figure.alignright {
    float: right;
    margin: 1.1em 0 1em 1.5rem !important;
    width: 40%;
}*/

figure.alignleft {
    float: left;
    margin-right: 1.5rem;
}

figure.aligncenter {
    margin: 0 auto;
    display: table;
}

/* ============================================
   12. MISC COMPONENTS
   ============================================ */
blockquote.wp-block-quote {
    border-left: none;
    max-width: 70%;
    padding: 0 5em;
    background-image: url('/wp-content/themes/Crane Museum/assets/images/iconmonstr-quote-5-64.png');
    background-repeat: no-repeat;
    background-position: top left;
    font-family: itc-american-typewriter, serif;
}

a.wp-block-button__link {
    border-radius: 14px !important;
}

.frm_forms.frm_style_formidable-style.with_frm_style {
    max-width: var(--max-width);
}

.cookie_link {
    background-color: var(--crane-blue-dark) !important;
}

/* ============================================
   13. PAGINATION
   ============================================ */
.pagination {
    line-height: 13px;
    margin: 0 auto;
    text-align: center;
}

    .pagination span,
    .pagination a {
        display: inline-block;
        margin: 2px 2px 2px 0;
        padding: 6px 9px 5px;
        text-decoration: none;
        color: var(--white) !important;
        background: #555;
        transition: background .15s ease-in-out;
    }

        .pagination a:hover {
            color: var(--white);
            background: var(--crane-blue);
        }

    .pagination .current {
        padding: 6px 9px 5px;
        background: var(--crane-blue);
        color: var(--white);
    }

/* ============================================
   14. WOOCOMMERCE
   ============================================ */
.woocommerce table.variations select {
    color: #333;
}

.single-product nav.navigation.post-navigation,
#post-587 div.product_meta,
#post-675 div.product_meta,
#post-587 section.related.products,
#post-675 section.related.products {
    display: none;
}

#post-675 div.woocommerce-tabs,
#post-587 div.woocommerce-tabs {
    height: 0;
    visibility: hidden;
}

.woocommerce-result-count,
.woocommerce-ordering {
    display: none;
}

.woocommerce-notices-wrapper a.button.wc-forward,
.woocommerce-notices-wrapper a.button.purple,
#frm_form_6_container .frm_submit button {
    color: var(--white);
    background-color: #a46497;
}

.postid-587 .woocommerce-notices-wrapper span.donationUpsell {
    display: none;
}

.cross-sells .products a.button {
    color: var(--white);
    background-color: #a46497;
}

.woocommerce-thankyou-order-received {
    font-size: 120%;
}

#covid_acknowledgement abbr {
    display: none;
}

    #covid_acknowledgement abbr.show {
        display: inline !important;
    }

#frm_form_6_container .frm_half:nth-child(odd) {
    margin-left: 0;
}

/* ============================================
   15. RESPONSIVE
   ============================================ */
@media screen and (max-width: 960px) {
    header.site-header {
        padding: 0 10px;
    }

    div.site-branding {
        margin: 20px 0;
        width: 60%;
    }

    .footerWrapper,
    #secondaryMenu {
        padding: 0 14px;
    }

    #homeFeatures {
        padding: 0 14px;
    }

    .archivePosts {
        margin: 10px 15px;
    }

        .archivePosts a,
        .archivePosts:after {
            width: 49%;
        }
}

@media screen and (min-width: 768px) and (max-width: 974px) {
    .entry-content {
        padding: 0 14px;
    }
}

@media screen and (max-width: 800px) {
    .footerMenu,
    .footerHours,
    .footerLocation {
        display: block;
        text-align: left;
        float: none;
        margin: 0 0 20px 0;
    }

    .footerWrapper {
        padding: 10px 30px;
        display: block;
    }
}

@media screen and (max-width: 544px) {
    .archivePosts a,
    .archivePosts:after {
        width: 100%;
    }
}
