/*
Theme Name: Poppy Haulage
Theme URI:
Author: Skyline Internet
Author URI:
Description:
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poppy-haulage
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

:root {
  --sidebarWidth: 80dvw;
}

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 the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.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
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

.is-style-floating-group-div {
  margin-bottom: -140px !important;
  z-index: 99;
  position: relative;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

footer {
  margin: 0 !important;
}

.current-menu-item {
  color: var(--wp--preset--color--custom-poppy-haulage-red) !important;
}

a.wp-block-navigation-item__content:hover {
  text-decoration: none !important;
  color: var(--wp--preset--color--custom-poppy-haulage-red) !important;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: calc(100% - 1em);
  padding: 1em;
  font-family: var(--wp--preset--font-family-museo-slab);
}

.contact-form input[type="checkbox"] {
  width: unset !important;
}

.contact-form .wpcf7-acceptance span.wpcf7-list-item-label {
  font-size: 12px !important;
  color: var(--wp--preset--color--custom-poppy-haulage-red);
}

.contact-form .wpcf7-acceptance span.wpcf7-list-item {
  margin: 0 !important;
}

.contact-form .wpcf7-acceptance span.wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.25em;
}

.contact-form input.wpcf7-submit {
  background-color: var(--wp--preset--color--custom-poppy-haulage-red);
  color: #fff;
  border: 1px solid #000;
}

@media screen and (max-width: 860px) {
  .mb-flex-col {
    flex-direction: column !important;
  }

  .mb-flex-row {
    flex-direction: row !important;
  }

  .mb-flex-start {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  .mb-grid-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  .mb-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mb-padding-0 {
    padding: 0 !important;
  }

  .mb-gap-0 {
    gap: 0 !important;
  }
}

@media screen and (max-width: 1180px) {
  header span.wp-block-navigation-item__label {
    font-size: 12px !important;
  }

}
/*
body.page .entry-content > .wp-block-group:last-of-type {
  margin-top: 50px;
}

body.page .entry-content > .wp-block-group:last-of-type > .wp-block-group {
  transform: translateY(-25px);
}
*/

/* Mobile Sidebar */

aside#sidebar {
  position: fixed;
  height: 100dvh;
  z-index: 999;
  background-color: #fff;
  left: 0;
  top: 0;
  min-width: 80dvw;
  transform: translateX(calc(var(--sidebarWidth) * -2));
  transition: all 0.25s;
}

aside#sidebar.open {
  transform: translate(0);
  z-index: 999;
}

body.sidebar-open {
  margin: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

body.sidebar-open:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 991;
  background-color: rgba(0, 0, 0, 0.5);
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-right {
  0% {
    opacity: 0;
    transform: translateX(2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-left {
  0% {
    opacity: 0;
    transform: translateX(-2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.aos.animate {
  animation-delay: 0.5s;
}

.aos.fade-up {
  opacity: 0;
  transform: translateY(2rem);
}
.aos.fade-right {
  opacity: 0;
  transform: translateX(-2rem);
}
.aos.fade-left {
  opacity: 0;
  transform: translateX(2rem);
}

.animate.aos.fade-up {
  animation: fade-up 1s both;
}
.animate.aos.fade-left {
  animation: fade-left 1s both;
}
.animate.aos.fade-right {
  animation: fade-right 1s both;
}

.animation-delay-1 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.25s) !important;
}
.animation-delay-2 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.5s) !important;
}
.animation-delay-3 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.75s) !important;
}
.animation-delay-4 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1s) !important;
}

.animation-delay-5 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.25s) !important;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:focus {
  outline-style: none !important;
}

header span.wp-block-navigation-item__label {
  border-right: 1px solid var(--wp--preset--color--custom-poppy-haulage-black);
  padding-right: 15px;
}

header li:last-of-type .wp-block-navigation-item__label {
  border: none !important;
  padding: 0 !important;
}

footer .current-menu-item {
  color: #fff !important;
}

footer aside .current-menu-item {
  color: var(--wp--preset--color--custom-poppy-haulage-red) !important;
}

footer .current-menu-item a {
  border-bottom: 1px solid !important;
}

/* Styles to stretch the height of the grid on the homepage */
.mb-grid-height {
  height: 100% !important;
}


.mb-grid-height .has-custom-poppy-haulage-red-background-color {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}