/*
 * Theme Name: Reliable Freight. Clear Communication.
 * Version: 2.0
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Reliable Freight. Clear Communication.
 */

/**
 * Custom Styling for the FluentForm Submission Button
 */
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--background) !important;
    border-color: var(--wp--preset--color--primary) !important;
    transition: filter 0.2s ease !important;
}

form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:hover {
    filter: brightness(1.1) !important;
}

/*
 * Smooth scrolling
 */
html {
    scroll-behavior: smooth;
}

.wp-block-site-title a:hover {
    opacity: 80%;
}

.wp-block-navigation-item {
    color: var(--wp--preset--color--text);
}

.wp-block-navigation-item:hover {
    opacity: 80%;
}

.wp-block-button:hover {
    opacity: 80%;
}

/*
 * Remove padding above/below the blocks wrapper
 */
.wp-site-blocks {
    padding: 0;
}

/*
 * Remove default margin around outer blocks
 */
:where(.wp-site-blocks)>* {
    margin-block-start: 0;
}

/*
 * Adjust positioning of the details block summary when it is an H4
 */
summary h4 {
    display: inline;
    margin-left: 10px;
}

/*
 * Header block
 */
.header-block {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid;
}

/*
 * Hide an info box/block from the frontend
 */
.hide-from-site-frontend {
    display: none;
}

/*
 * Link styles
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.1em;
}

/*
 * Focus styles
 */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/*
 * Increase bottom margin on submenus
 */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/*
 * Increase outline offset on parent menu items
 */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/*
 * Remove outline offset from submenus
 */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front
 */
.more-link {
    display: block;
}

/*
 * Fixed website header
 */
.site-header {
    position: fixed;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    z-index: 1000;
    border-bottom: 1px solid;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/*
 * LOGO SIZE
 * Increased from the original small size.
 */
.site-header img {
    height: auto;
    width: 200px !important;
    max-width: 200px !important;
    object-fit: contain;
}

/*
 * Admin bar adjustment on desktop
 */
.admin-bar .site-header {
    top: 32px !important;
}

/*
 * Admin bar adjustment on mobile devices
 */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
    }
}

/*
 * Very small screens
 */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0 !important;
    }
}

/*
 * Make the separator between footer and content thinner
 */
.wp-block-separator {
    border: none !important;
    border-top: 1px solid !important;
}

/*
 * Product columns hover effect
 */
#products .wp-block-column {
    transition: scale 0.15s ease-in-out;
}

#products .wp-block-column:hover {
    scale: 105%;
}

/*
 * Prevent overflow of images
 */
img {
    max-width: 100%;
    height: auto;
}

.footer-contact-columns .wp-block-group {
    text-align: center;
}

.footer-contact-columns {
    align-items: center;
}