/*
Theme Name: Paragon TM
Theme URI:
Author: Skyline Internet
Author URI:
Description: A bespoke theme for Paragon TM, based on TwentyTwentyFive
Requires at least: 6.9
Tested up to: 6.9
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: paragon-tm
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

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

:root {
  --sidebarWidth: 85dvw;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline: none;
}

/* 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;
}

/*
 * 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;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
  overflow-x: auto;
}

header {
  position: relative;
  z-index: 5;
}

/* Text Outline */

.page-id-703 main h1 {
  -webkit-text-stroke: 6px #f6d019;
  paint-order: stroke fill;
}

.page-id-703 main h2 {
  -webkit-text-stroke: 6px black;
  paint-order: stroke fill;
  text-shadow: 0px 4px 4px #000;
}

.page-id-703 main h3 {
  -webkit-text-stroke: 6px black;
  paint-order: stroke fill;
  text-shadow: 0px 4px 4px #000;
}

.page-id-703 main h3.wp-block-accordion-heading,
.page-id-703 main .wp-block-cover h3,
.page-id-703 main h3.wp-block-heading {
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

.page-id-703 footer h3.wp-block-heading {
  color: #fff;
  -webkit-text-stroke: 6px black !important;
  paint-order: stroke fill !important;
  text-shadow: 0px 4px 4px #000 !important;
}

.wp-block-button:hover {
  transition: transform 0.2s;
  transform: scale(1.05);
  cursor: pointer;
}

.services.wp-block-group-is-layout-grid > .wp-block-group:hover {
  transition: transform 0.2s;
  transform: scale(1.05);
  cursor: pointer;
}

.services.wp-block-group-is-layout-grid {
  row-gap: 2em;
}

/* Logos */

.home .logos img {
  filter: grayscale(1);
  opacity: 0.5;
  cursor: pointer;
}

.home .logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.logos {
  column-gap: 4em !important;
  row-gap: 1em !important;
}

/* Industries */

.wp-block-cb-carousel-v2 .cb-button-next:after,
.wp-block-cb-carousel-v2 .cb-button-prev:after {
  font-size: 0.8em !important;
}

/* Floating Form */

footer .wpcf7-form input[type="text"],
footer .wpcf7-form input[type="tel"],
footer .wpcf7-form input[type="email"],
footer .wpcf7-form textarea {
  background: none;
  border: 1px solid var(--wp--preset--color--ptm-grey-30);
  padding: 0.8em 1em !important;
  font-size: 0.8em;
  width: -webkit-fill-available;
  font-family: var(--wp--preset--font-family--barlow-semi-condensed);
  font-weight: 200;
  color: var(--wp--preset--color--contrast);
  margin-bottom: 1em;
}

.wpcf7-form textarea {
  margin-bottom: 0 !important;
}

footer .wpcf7-form input::placeholder,
footer .wpcf7-form textarea::placeholder {
  color: var(--wp--preset--color--contrast);
  font-weight: 200;
}

footer .wpcf7-form input[type="submit"] {
  padding: 0.85rem 1.75rem !important;
  font-size: 1.1rem;
  margin-top: 0.5em;
  font-weight: 500;
  border-radius: 9999px;
  font-family: var(--wp--preset--font-family--barlow-semi-condensed);
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  float: right;
}

footer .wpcf7-list-item {
  color: var(--wp--preset--color--contrast);
  font-weight: 200;
}

footer .form {
  position: fixed;
  bottom: 6rem;
  right: 0;
}

footer .form-button {
  position: fixed;
  bottom: 2rem;
  z-index: 9;
  right: 3rem;
}

footer .sticky-cta-form {
  z-index: -1;
}

footer .sticky-cta-form.active {
  z-index: 9;
}

footer .form-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

footer .form .wp-block-button__link {
  padding-left: 1.2em;
}

footer .form .wp-block-button svg {
  fill: #000;
  height: 1.1em;
  vertical-align: text-bottom;
}

footer .sticky-cta-form > .wp-block-group {
  /*transform-origin: bottom right;*/
  transform-origin: 75% 100%;
  transform: scale(0);
  z-index: -3;
  transition: all 0.45s;
}

footer .sticky-cta-form .wpcf7-not-valid-tip {
  font-size: 0.85rem;
  background-color: #e6d3d3;
  padding: 0.2rem 1rem;
  border-radius: 1rem;
  color: #991919;
  font-weight: 600;
  position: relative;
}

footer .sticky-cta-form .wpcf7-not-valid-tip:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #e6d3d3;
  transform: translateY(-9px);
  right: 1rem;
}

footer .sticky-cta-form [href="#closeForm"] {
  transition: all 0.25s ease-in-out;
  transform: rotate(0);
  transform-origin: center center;
}

footer .sticky-cta-form [href="#closeForm"]:hover {
  transform: rotate(90deg) scaleX(1) scaleY(1) !important;
  transition: all 0.25s ease-in-out;
}

footer .sticky-cta-form input,
footer .sticky-cta-form textarea {
  color: var(--black);
}

footer .sticky-cta-form > .wp-block-group.active {
  transform: scale(1);
  z-index: 100;
}

.wpcf7-list-item {
  margin: 0 0;
  font-size: 0.8em;
  line-height: 1em;
}

.wp-block-contact-form-7-contact-form-selector {
  width: -webkit-fill-available;
}

/* FAQ's */

.wp-block-accordion {
  width: -webkit-fill-available;
}

.wp-block-accordion-heading__toggle-icon {
  color: var(--wp--preset--color--ptm-yellow);
  font-size: 1.5em;
  font-weight: 500;
}

.wp-block-accordion-item.is-open p {
  padding-bottom: 1em;
}

.wp-block-accordion-item,
.is-open .wp-block-accordion-panel {
  margin-block-start: 0 !important;
}

.wp-block-accordion-heading__toggle {
  padding: 0.75em 0;
}

.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100vw;
  height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
  min-height: 100vh;
  min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.services-row {
  justify-content: center;
}

.services-row > .service-box {
  width: 20% !important;
}

aside#megaMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: -1;
  backdrop-filter: blur(6px);
  transition: all 0.1s;
  opacity: 0;
}

aside#megaMenu > * {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.5s;
}

aside#megaMenu.active > * {
  opacity: 1;
  transform: translateY(0);
}

aside#megaMenu.active {
  z-index: 100;
  opacity: 1;
}

html:has(aside#megaMenu.active),
body:has(aside#megaMenu.active) {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.mega-menu-toggle {
  opacity: 1;
  transition: all 0.25s;
}

.mega-menu-toggle:hover {
  cursor: pointer;
  opacity: 0.8;
}

.close-mega-menu-nav {
  display: none;
}

#megaMenu {
  --leftColumnWidth: 16rem;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid {
  grid-template-columns: 1fr;
  position: relative;
  gap: 0;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid h3,
.mega-menu .wp-block-column .wp-block-group.is-layout-grid h3 {
  width: var(--leftColumnWidth);
  border-right: 2px solid var(--wp--preset--color--ptm-yellow);
  padding: 1rem 0.5rem;
  transition: all 0.25s;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid h3:hover,
#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid h3.active,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid h3.hover,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid h3.active {
  cursor: pointer;
  text-indent: 2rem;
}

/*.ignore-mega-menu-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2em !important;
}*/

h3.wp-block-heading.mega-menu-heading.active:before {
  transform: scaleX(1.5);
  width: 15px;
}

h3.wp-block-heading.mega-menu-heading::before {
  content: "";
  width: 0;
  background-color: #000;
  height: 5px;
  display: block;
  transition: all 0.4s;
  left: 0.5rem;
  position: relative;
  border-radius: 0.75em;
}

h3.mega-menu-heading {
  display: flex;
  align-items: center;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid h3:after {
  display: none;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid nav,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid nav {
  left: calc(var(--leftColumnWidth) + 3rem);
  max-width: calc(100% - var(---leftColumnWidth));
  position: absolute;
  top: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid nav.active,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid nav.active {
  opacity: 1;
  visibility: visible;
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid nav li,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid nav li {
  opacity: 0;
  transform: translateX(-1rem);
}

#megaMenu > .wp-block-group > .wp-block-group.is-layout-grid nav.active li,
#megaMenu .wp-block-column .wp-block-group.is-layout-grid nav.active li {
  animation: fadeNavItem 0.25s ease-in-out forwards;
  animation-delay: calc(var(--i, 1) * 0.1s);
}

.mega-menu nav ul {
  grid-template-columns: repeat(2, 1fr);
  display: grid;
  grid-column-gap: 4.5em;
  padding-top: 1rem;
}

@keyframes fadeNavItem {
  from {
    opacity: 0;
    transform: translateX(-1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

form input.wpcf7-form-control,
form textarea.wpcf7-form-control,
form select.wpcf7-form-control {
  width: calc(100% - 1.75rem);
  padding: 0.75em 1em;
  border-radius: 0.5rem;
  border: 1px solid var(--wp--preset--color--ptm-grey);
  font-family: var(--wp--preset--font-family--barlow-semi-condensed);
  font-size: 16px;
}

form select.wpcf7-form-control,
form input[type="submit"].wpcf7-form-control {
  width: 100% !important;
}

form input[type="submit"].wpcf7-form-control {
  background-color: var(--wp--preset--color--ptm-yellow);
  font-weight: 500;
  border: none !important;
  color: #000;
}

.news-post-query-loop li:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.news-post-query-loop li:nth-child(1) .wp-block-cover {
  min-height: 60vh;
}

.news-post-query-loop li:nth-child(2) {
  grid-column: span 3;
  grid-row: span 1;
}

.news-post-query-loop li:nth-child(2) .wp-block-cover {
  min-height: calc(30vh - 1.2rem);
}

.news-post-query-loop li:nth-child(3) {
  grid-column: span 2;
  grid-row: span 1;
}

.news-post-query-loop li:nth-child(3) .wp-block-cover {
  min-height: 30vh;
}

.news-post-query-loop li:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

.news-post-query-loop li:nth-child(4) .wp-block-cover {
  min-height: 30vh;
}

@media only screen and (max-width: 882px) {
  .wp-block-group.services,
  .mb-grid-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

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

  .mb-flex-col {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-post-query-loop li:nth-child(1) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .news-post-query-loop li:nth-child(1) .wp-block-cover {
    min-height: calc(30vh - 1.2rem) !important;
  }

  .news-post-query-loop li:nth-child(2) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .news-post-query-loop li .wp-block-cover {
    min-height: calc(30vh - 1.2rem) !important;
  }

  .news-post-query-loop li:nth-child(3) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .news-post-query-loop li:nth-child(3) .wp-block-cover {
    min-height: calc(30vh - 1.2rem) !important;
  }

  .news-post-query-loop li:nth-child(4) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .news-post-query-loop li:nth-child(4) .wp-block-cover {
    min-height: calc(30vh - 1.2rem) !important;
  }

  .services-case-study figure {
    width: unset !important;
  }

  .services-row > .service-box {
    width: 100% !important;
  }

  .services-row {
    flex-direction: column !important;
  }

  .mb-gap-2 {
    gap: 2em !important;
  }

  .location-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

aside#sidebar {
  position: fixed;
  z-index: -1;
  width: var(--sidebarWidth);
  transform: translateX(calc(var(--sidebarWidth) * -1));
  inset: 0;
  transition: transform 0.3s;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: scroll;
  padding: 0 !important;
}

aside#sidebar .wp-block-columns {
  padding: 0 !important;
}

body.open-popover aside.mobile-sidebar {
  box-shadow: 0 3px 3px 3px rgba(0, 0, 0, 0.2) !important;
  z-index: 999 !important;
  transform: translateX(0) !important;
}

body.open-popover.closing .wp-block-group.mobile-sidebar {
  transform: translateX(calc(var(--sidebarWidth) * -1));
}

body.open-popover {
  height: 100dvh;
  overflow: hidden;
  max-height: 100dvh;
}

body.open-popover:after {
  opacity: 1;
  z-index: 998;
}

#sidebar > .wp-block-group > .wp-block-group.is-layout-grid h3,
.mega-menu .wp-block-column .wp-block-group.is-layout-grid h3 {
  width: var(--leftColumnWidth);
  border-right: 2px solid var(--wp--preset--color--ptm-yellow);
  padding: 1rem 0.5rem;
  transition: all 0.25s;
}

#sidebar > .wp-block-group > .wp-block-group.is-layout-grid,
#sidebar .wp-block-column .wp-block-group.is-layout-grid {
  grid-template-columns: 1fr;
  position: relative;
  gap: 1rem;
}

aside#sidebar > .wp-block-group {
  padding: 2em;
}

#sidebar h3::before {
  display: none;
}

#sidebar nav {
  position: fixed;
  top: 0 !important;
  padding: 2rem;
  left: 0 !important;
  transition: all 0.25s;
  transform: translateX(-180%);
  height: 100dvh !important;
  max-height: 100dvh;
  overflow-y: hidden;
  z-index: 999;
  max-width: var(--sidebarWidth) !important;
  width: 100%;
  height: 100% !important;
}

#sidebar nav.is-opened {
  transform: translate(0);
  background-color: #fff;
}

@media (max-width: 1024px) {
  .footer-column {
    flex-basis: 20% !important;
  }

  .footer-column-container {
    flex-wrap: wrap !important;
  }

  .tb-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tb-column-wrap {
    flex-wrap: wrap !important;
  }

  .tb-contact-column {
    flex-basis: 50% !important;
    padding-left: 0 !important;
    border-left-width: 0 !important;
    border-left-color: unset !important;
    border-top: 2px solid var(--wp--preset--color--ptm-yellow);
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .mega-menu-toggle {
    display: none;
  }
}

body .cmplz-btn.cmplz-manage-consent {
  left: 2rem;
  right: unset !important;
  font-family: inherit;
  font-size: 15px;
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  border-radius: 999px;
}

.wpcf7 form .wpcf7-response-output {
  --activeColour: #00a0d2;
  --activeColourDark: #016a8a;
  background-color: var(--activeColour, #00a0d2);
  border-color: var(--activeColourDark) !important;
  border-top-width: 0px !important;
  border-right-width: 0px !important;
  border-bottom-width: 0px !important;
  border-left-width: 5px;
  color: #fff;
}

.wpcf7 form.sent .wpcf7-response-output {
  --activeColour: #13741b;
  --activeColourDark: #05490a;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  --activeColour: #9c1818;
  --activeColourDark: #6b0808;
}

.wpcf7 form.spam .wpcf7-response-output {
  --activeColour: #bd4b12;
  --activeColourDark: #923507;
}

a.wp-block-read-more.d-block {
  display: inline-block;
  min-width: 14rem;
  max-width: 100%;
  text-align: center;
  transition: all 0.25s;
}

a.wp-block-read-more.d-block:hover {
  opacity: 0.8;
}
