/* ===================================================================
   BISMARCK MANDAN CVB — theme.css
   Only what Elementor widgets can't style: shortcode output, the
   condensed scroll bar + back-to-top states, and site-wide guards.
   Colours/sizes are the kit's V4 variables (var(--label)), with the
   HTML build's value as fallback.
   =================================================================== */

body {
    overflow-x: hidden;   /* mega panels park off-canvas (header.css) */
}

.bm-icon {
    display: inline-block;
    height: 1em;
    vertical-align: -.125em;
}

/* ------------------------------------------------------------------- breadcrumb (#tnav-container) */
.bm-breadcrumbs {
    padding-bottom: var(--sp8, .5rem);
    color: var(--white, #FFFFFF);
    font-family: var(--font-new-hero, "new-hero"), sans-serif;
    font-size: var(--f16, 1rem);
}
.bm-breadcrumbs .bm-breadlink {
    color: var(--white, #FFFFFF);
    text-decoration: none;
}
.bm-breadcrumbs .bm-breadlink:hover,
.bm-breadcrumbs .bm-breadlink:focus {
    color: var(--orange-500, #F77619);
}

/* ------------------------------------------------------------------- listing contact + categories */
.bm-listing-contact {
    margin: 0;
    line-height: 1.75;
}
.bm-listing-contact a {
    color: var(--teal-500, #00796B);
    text-decoration: underline;
}
.bm-listing-contact a[href^="tel:"] {
    color: inherit;   /* the original prints the phone as plain text */
    text-decoration: none;
}
.bm-listing-contact a:hover,
.bm-listing-contact a:focus {
    color: var(--orange-500, #F77619);
}
.bm-listing-cats {
    width: 100%;
    margin: var(--sp32, 2rem) 0;
    padding: 0 0 var(--sp16, 1rem);
    border-bottom: 1px solid rgba(247, 118, 45, .3);
    list-style: none;
    text-align: left;
}
.bm-listing-cats li {
    display: inline-block;
    padding: 0 var(--sp16, 1rem);
    border-right: 2px solid var(--orange-500, #F77619);
    line-height: 1.25rem;
}
.bm-listing-cats li:last-of-type {
    border-right: none;
}
.bm-listing-cats a {
    color: var(--blue-500, #0D85D4);
    text-decoration: none;
}
.bm-listing-cats a:hover,
.bm-listing-cats a:focus {
    color: var(--gray, #707070);
    text-decoration: underline;
}

/* ------------------------------------------------------------------- card meta (address + Map It) */
.bm-card-meta {
    color: var(--gray, #707070);
}
.bm-card-meta .bm-icon {
    color: var(--secondary, #00796B);
}
.bm-card-meta a {
    color: var(--gray, #707070);
    text-decoration: none;
}
.bm-card-meta a:hover,
.bm-card-meta a:focus {
    color: var(--secondary, #00796B);
}

/* ------------------------------------------------------------------- hero title entrance (fade-in-move-up .75s) */
@keyframes bm-fade-in-move-up {
    0% { opacity: 0; transform: translateY(3rem); }
    100% { opacity: 1; transform: translateY(0); }
}
.bm-rise {
    animation: bm-fade-in-move-up .75s;
}
@media (prefers-reduced-motion: reduce) {
    .bm-rise { animation: none; }
}

/* ------------------------------------------------------------------- condensed scroll bar (#scrollDesktopMenu) */
.bm-scroll-bar {
    height: 0;
    overflow: hidden;
    transition: height .25s;
}
.bm-scroll-bar.is-visible {
    height: 72px;   /* 60px + the bar's 12px top padding (content-box in the original) */
}
.single-listing .bm-scroll-bar.is-visible {
    height: 92px;
}

/* ------------------------------------------------------------------- back to top (.to-top-btn) */
.bm-to-top {
    display: none;
}
.bm-to-top.is-visible {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .bm-scroll-bar {
        transition: none;
    }
}

/* ------------------------------------------------------------------- scroll reveals (vendor.css §KEYFRAMES + SCROLL REVEALS)
   Same classes as the HTML build; theme.js adds .active in view. Off in the
   editor and for reduced motion, and never applied without JS (html.bm-js). */
.bm-js .revealCustom {
    position: relative;
    opacity: 0;
    transform: translateY(150px);
    transition: .75s all ease;
}
.bm-js .revealCustom.active {
    opacity: 1;
    transform: translateY(0);
}
.bm-js .revealCustomZoom img {
    transform: scale(1.1);
    transition: all .75s ease-in-out;
}
.bm-js .revealCustomZoom.active img {
    transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
    .bm-js .revealCustom,
    .bm-js .revealCustomZoom img {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ------------------------------------------------------------------- home hero pause/play (#pauseplay) */
.bm-slides-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: var(--white, #FFFFFF);
    font-size: var(--f32, 2rem);
    cursor: pointer;
}
.bm-slides-pause:hover,
.bm-slides-pause:focus-visible {
    background: rgba(0, 0, 0, .65);
    outline: 3px solid var(--yellow-400, #FCD45B);
    outline-offset: 3px;
}
.bm-slides-pause .bm-icon {
    width: 1em;
    height: 1em;
}
.bm-slides-pause .bm-slides-pause__play,
.bm-slides-pause[aria-pressed="true"] .bm-slides-pause__pause {
    display: none;
}
.bm-slides-pause[aria-pressed="true"] .bm-slides-pause__play {
    display: inline-block;
}

/* ------------------------------------------------------------------- headings: Foundation's text-rendering
   (kerning, and so where long headings wrap, matches the HTML build) + the home headings' fade-in (vendor.css .fade-in-text) */
h1, h2, h3, h4, h5, h6, .elementor-heading-title {
    text-rendering: optimizeLegibility;
}
@keyframes bmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in-text .elementor-heading-title {
    animation: bmFadeIn linear 2s;
}
@media (prefers-reduced-motion: reduce) {
    .fade-in-text .elementor-heading-title { animation: none; }
}
