/*
Theme Name: Basement Blocks
Theme URI:
Author: Abstract Marketing
Author URI:
Description: Custom theme developed for Basement Boss
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basement-blocks
Tags: full-site-editing
*/

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

html {
    scroll-behavior: smooth;
}

iframe {
    display: block;
}

:where(input:not(:is([type='button'], [type='submit'])), select, textarea) {
    font: inherit
}

:where(input:not(:is([type='button'], [type='submit'])), select, textarea) {
    background-color: var(--wp--preset--color--base);
    border: 1px solid #bbb;
    border-radius: 4px;
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    line-height: 1.5;
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
    width: 100%;
}

:where(input:focus, textarea:focus, select:focus) {
    outline: 2px solid var(--wp--preset--color--primary);
}

:where(input[type='checkbox'], input[type='image'], input[type='radio']) {
    width: auto;
}

::placeholder {
    color: var(--wp--preset--color--contrast);
    opacity: 0.5;
}

.is-style-outline:is(:hover, :focus) .wp-block-button__link:not(.has-background) {
    background-color: rgb(0 0 0 / .1);
}

.entry-content {
    container-type: inline-size;
}

.entry-content :is(.alignleft, .alignright) {
    margin-block-end: 1em;
}

.entry-content :is(.alignleft, .alignright):first-child + * {
    margin-top: 0;
}

@container (width < 600px) {
    .entry-content .wp-block-image:is(.alignright, .alignleft) {
        float: none !important;
        margin: 0 0 1.5rem;
        width: 100%;
        text-align: center;
    }

    .entry-content .wp-block-image:is(.alignright, .alignleft) img {
        max-height: 400px;
        width: auto !important;
        display: inline-block !important;
    }
}

.wp-site-blocks {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    min-height: 100%;
}

.wp-site-blocks > * {
    margin: 0;
}

.has-modal-open :is(.site-header, .site-header__inner) {
    -webkit-backdrop-filter: unset !important;
    backdrop-filter: unset !important;
}

.wp-block-breadcrumbs li {
  max-width: 200px;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   Basement Boss
   --------------------------------------------------------------------------- */

/* Header --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: -212px;
    z-index: 1;
    transition: top .33s ease-out;
}

.site-header__top,
.site-header__branding .wp-block-site-logo img {
    transition: max-height .25s ease, opacity .2s ease, width .25s ease;
}

.site-header__nav {
    row-gap: var(--wp--preset--spacing--40);
}

.site-header__nav .wp-block-navigation .wp-block-navigation-item__content {
    color: var(--wp--preset--color--dark-gray);
}

.site-header__nav .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-header__nav .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--primary);
}

@media (max-width: 781px) {
    .site-header__topbar-actions {
        display: none;
    }
}

/* Cards ---------------------------------------------------------------- */

.bb-card {
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bb-card:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: var(--wp--preset--shadow--card);
}

.bb-card__marker {
    border-radius: 3px;
    height: 44px;
    width: 44px;
}

@media (min-width: 782px) {
    .bb-card--raised {
        transform: translateY(-16px);
    }
}

/* Section helpers ------------------------------------------------------ */

.bb-image-placeholder {
    display: grid;
    place-items: center;
}

.bb-rule.wp-block-separator {
    border: 0;
    height: 4px;
    margin-inline: auto;
    max-width: 96px;
    width: 96px;
}

.bb-structural-gradient {
    background: linear-gradient(135deg, rgb(0 69 124 / .06) 0%, rgb(182 33 43 / .06) 100%);
}

.bb-panel {
    overflow: hidden;
}

.bb-badge {
    display: inline-block;
}

/* Logo marquee --------------------------------------------------------- */

.bb-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    overflow: hidden;
    user-select: none;
}

.bb-marquee__track {
    animation: bb-marquee 45s linear infinite;
    display: flex;
    width: max-content;
}

.bb-marquee:hover .bb-marquee__track {
    animation-play-state: paused;
}

.bb-marquee__group {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    margin: 0;
    padding: 0 1.75rem 0 0;
}

.bb-marquee__group li {
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
    white-space: nowrap;
}

@keyframes bb-marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .bb-marquee__track { animation: none; }
}

/* Placeholder forms ---------------------------------------------------- */

.bb-form p {
    margin: 0 0 var(--wp--preset--spacing--40);
}

.bb-form label {
    color: var(--wp--preset--color--muted);
    display: block;
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.bb-form__row {
    display: grid;
    gap: 0 var(--wp--preset--spacing--40);
    grid-template-columns: 1fr 1fr;
}

.bb-form__submit,
.footer-form button {
    background-color: var(--wp--preset--color--secondary);
    border: 0;
    border-radius: 2px;
    color: var(--wp--preset--color--white);
    cursor: pointer;
    font-weight: 700;
    padding: .85em 1.6em;
}

.bb-form__submit {
    width: 100%;
}

.bb-form__submit:hover,
.footer-form button:hover {
    background-color: var(--wp--preset--color--secondary-2);
}

.footer-form {
    display: grid;
    gap: .625rem;
}

.footer-form :is(input, textarea) {
    background-color: rgb(255 255 255 / .06);
    border-color: var(--wp--preset--color--dark-gray);
    color: var(--wp--preset--color--white);
}

.footer-form ::placeholder {
    color: var(--wp--preset--color--muted);
    opacity: 1;
}

.footer-form button {
    justify-self: start;
}

@media (max-width: 600px) {
    .bb-form__row {
        grid-template-columns: 1fr;
    }
}
