/*
Theme Name: Multiplex Beverage
Theme URI: 
Author: DeanHouston+
Author URI: 
Description: A fresh, engaging theme for Multiplex 2026 and beyond.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 1.3.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: multiplex-beverage
Tags: 
*/

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Keep the 404 headline readable within the slim banner's fixed height. */
.title-banner.multiplex-not-found-banner .title-content > div:first-child {
  width: 100%;
  max-width: none;
}

.title-banner.multiplex-not-found-banner h1 {
  max-width: none;
  font-size: clamp(24px, 3vw, 40px);
}

/* Header */
.header-navigation-elements nav {
    margin-right: 0.5rem;
}

@media (max-width: 599px) {
    #header-row {
        flex-direction: column;
        gap: 2rem;
    }

    #header-row .header-navigation-elements {
        flex-direction: row-reverse;
        gap: 3rem;
    }
}

#header-row .wp-block-navigation .wp-block-navigation__submenu-container {
    border-radius: 6px;
}

#header-row .wp-block-navigation .wp-block-navigation__submenu-container > li + li {
    border-top: var(--wp--custom--border--width, 1px) solid var(--wp--preset--color--subtle-border, #d9dce9);
}

@media (min-width: 600px) {
    .header-navigation-elements nav {
        margin-right: 2rem;
    }

    #header-row .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
        left: 0;
        right: auto;
        top: calc(100% + 12px);
    }

    /* Bridge the visual offset without interrupting parent/submenu hover. */
    #header-row .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: -1px;
        right: -1px;
        height: 13px;
    }
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0;
    text-align: left;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation-item {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation-item__content {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    overflow-wrap: anywhere;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation-item__content[hidden] {
    display: none;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-icon svg {
    width: 12px;
    height: 12px;
    transform: none;
}

#header-row .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-icon[aria-expanded="true"] svg,
#header-row .wp-block-navigation .is-menu-open .multiplex-mobile-submenu-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

#header-row .wp-block-navigation .is-menu-open .multiplex-mobile-submenu-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 16px 20px;
    justify-content: space-between;
    gap: 16px;
    font: inherit;
    text-align: left;
}

#header-row .wp-block-navigation .is-menu-open .multiplex-mobile-submenu-trigger > .wp-block-navigation__submenu-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

#header-row .wp-block-navigation .is-menu-open .multiplex-mobile-submenu-trigger svg {
    flex-shrink: 0;
}

#header-row .wp-block-navigation .is-menu-open .multiplex-mobile-parent-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

#header-row .wp-block-navigation .is-menu-open :is(a, button)[aria-current="page"] {
    background-color: #f5f6fa;
}

#header-row .wp-block-navigation .is-menu-open .has-child > .wp-block-navigation__submenu-container {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding: 0 0 0 16px;
    align-items: stretch;
    gap: 0;
}

#header-row .wp-block-navigation .is-menu-open .has-child > .wp-block-navigation__submenu-container > li {
    border: 0;
}

#header-row .wp-block-navigation .is-menu-open .has-child[data-mobile-submenu="closed"] > .wp-block-navigation__submenu-container {
    display: none;
}

#header-row .wp-block-navigation .is-menu-open .has-child[data-mobile-submenu="open"] > .wp-block-navigation__submenu-container {
    display: flex;
}

/* End Header */

/* Buttons */
.wp-element-button,
.wp-block-button__link {
  transition: all 0.25s;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
  opacity: 0.7;
}

.wp-block-navigation a.wp-block-navigation-item__content:hover {
  opacity: 0.7;
}

.wp-block-query.alignfull > .wp-block-post-template.alignfull {
  max-width: none;
}

.wp-block-heading.is-style-editorial {
  font-family: var(--wp--preset--font-family--fredoka);
  font-weight: var(--wp--custom--typography--editorial-weight);
  letter-spacing: var(--wp--custom--typography--editorial-tracking);
}

.wp-block-heading.is-style-technical {
  font-family: var(--wp--preset--font-family--open-sans);
  font-weight: 600;
  letter-spacing: normal;
}

/* Footer */
.wp-block-group.multiplex-footer {
  padding: 54px 5% 48px;
  /* border-top: 1px solid #ffffff30; */
  background: var(--wp--preset--color--multiplex-blue);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.multiplex-footer .multiplex-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.multiplex-footer__brand,
.multiplex-footer__column {
  min-width: 0;
  margin: 0;
}

.multiplex-footer .multiplex-footer__logo {
  margin: 0 0 24px;
}

.multiplex-footer__logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
  vertical-align: baseline;
}

.multiplex-footer .multiplex-footer__description {
  margin: 0 0 20px;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.8;
}

.multiplex-footer .multiplex-footer__heading {
  margin: 0 0 20px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: normal;
}

.multiplex-footer .multiplex-footer__links {
  margin: 0 0 12px;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
}

.multiplex-footer__links .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.multiplex-footer__links .wp-block-navigation-item {
  width: 100%;
}

.multiplex-footer__links .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.multiplex-footer .multiplex-footer__socials {
  gap: 8px;
  margin-top: 16px;
}

.multiplex-footer__socials .wp-block-image {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
}

.multiplex-footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: inherit;
  opacity: 1;
}

.multiplex-footer__socials img {
  display: block;
  width: 22px;
  height: 22px;
}

.multiplex-footer__socials a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .multiplex-footer .multiplex-footer__grid {
    grid-template-columns: 1.3fr minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .multiplex-footer .multiplex-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .multiplex-footer__brand {
    grid-column: 1 / -1;
  }
}
/* End Footer */

