/*
Theme Name: Morse Business Finance
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: morse-business-finance
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: 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;
}

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

/* Types of Finance */

.type {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

.type h3 {
  position: absolute;
  transform: translateX(0);
  transition: all 0.25s ease-in-out;
}

.type .details {
  transform: translateX(calc(100% + var(--wp--preset--spacing--30)));
  transition: all 0.25s ease-in-out;
}

.type h3 strong {
  font-weight: 700;
}

.type:hover h3 {
  transform: translateX(-200%);
}

.type:hover .details {
  transform: translateX(0);
}

.type p.cover-link-block a,
.type p.cover-link-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  opacity: 0;
}

.type p.cover-link-block {
  margin: 0;
}

/*
.type p,
.type .link {
  display: none;
}
*/
.type:hover {
  cursor: pointer;
}

/*
.type:hover p {
  display: block;
}

.type:hover .link {
  display: inline-flex;
}
*/
/*
.type:hover h3 {
  display: none;
}
*/
/* Customer Feedback */

.wp-block-cb-carousel-v2 .cb-button-next,
.wp-block-cb-carousel-v2 .cb-button-prev {
  color: var(--wp--preset--color--custom-mid-grey);
}

.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet {
  background: var(--wp--preset--color--custom-mid-grey);
}

.wp-block-cb-carousel-v2
  .cb-pagination
  .cb-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--wp--preset--color--custom-blue);
}

/* Footer */

footer .wp-block-navigation li:before {
  content: "-";
  margin-right: 0.5em;
}

/* Sectors */

.sectors-grid figure {
  overflow: hidden;
}

.sectors-grid figure a {
  position: relative;
  overflow: hidden;
}
.sectors-grid figure a:after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 25, 61, 0.7) 0%,
    rgba(91, 141, 238, 0.7) 100%
  );
  transform: scale(1);
  opacity: 0;
  transition: opacity 0.25s ease-in-out, transform 0.3s ease-out;
}

.sectors-grid .aos:nth-child(3n + 1) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.25s) !important;
}
.sectors-grid .aos:nth-child(3n + 2) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.5s) !important;
}
.sectors-grid .aos:nth-child(3n) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.75s) !important;
}

.sectors-grid figure:hover a:after {
  opacity: 1;
  transform: scale(1.15);
}

.parent-pageid-784 .wp-block-image.size-full img {
  height: 300px;
}

a.wp-block-button__link.has-custom-blue-background-color {
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
}

a.wp-block-button__link.has-custom-blue-background-color:hover {
  background-color: var(--wp--preset--color--custom-dark-blue) !important;
}

.home-banner-v2 figure {
  position: relative;
}

.home-banner-v2 figure img {
  -webkit-clip-path: polygon(calc(0% + 3rem) 0%, 100% 0%, 100% 100%, 0% 100%);
  clip-path: polygon(calc(0% + 3rem) 0%, 100% 0%, 100% 100%, 0% 100%);
}

.home-banner-v2 figure:before {
  content: "";
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.25);
  position: absolute;
  top: 0;
  left: -10px;
  display: block;
  clip-path: polygon(calc(0% + 3rem) 0%, 100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(calc(0% + 3rem) 0%, 100% 0%, 100% 100%, 0% 100%);
}

.home-banner-v2 figure:after {
  content: "";
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.15);
  position: absolute;
  top: 0;
  left: -20px;
  display: block;
  clip-path: polygon(calc(0% + 3rem) 0%, 100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(calc(0% + 3rem) 0%, 100% 0%, 100% 100%, 0% 100%);
}

.home-banner-v2 figure img {
  position: relative;
  z-index: 11;
}

.column-fake-left-align {
  padding-left: calc(
    (100% - var(--wp--style--global--wide-size)) / 2
  ) !important;
}

body.page-id-593 header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #fff;
  z-index: 20;
}

body.page-id-593 header > .wp-block-group {
  background-color: transparent;
}

body.page-id-593 .wp-block-cover .wp-block-outermost-icon-block a {
  margin-top: 5rem;
}

/* Feedback */

.feedback .wp-block-columns {
  gap: 0;
}

/* Header v3 */

body.page-id-619 header {
  position: relative;
  z-index: 10;
}

/* Slider v3 */

.page-id-619 .wp-block-cb-carousel-v2.alignfull .cb-button-next,
.page-id-619 .wp-block-cb-carousel-v2.alignfull .cb-button-prev {
  color: rgba(255, 255, 255, 0.5) !important;
}

.wp-block-cb-carousel-v2.alignfull .cb-button-prev {
  left: 20px;
}

.wp-block-cb-carousel-v2.alignfull .cb-button-next {
  right: 20px;
}

/* About - Team */

.team .member .about {
  display: none;
}

.team .member:hover .about {
  display: flex;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.team .member figure {
  position: relative;
}

.team .member .details {
  position: absolute;
  bottom: 0;
  width: -webkit-fill-available;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.team .member:hover .job-title {
  color: var(--wp--preset--color--custom-blue) !important;
  font-weight: 500;
}

.yoast-breadcrumbs > span {
  font-size: 0.7em;
  color: var(--wp--preset--color--custom-white) !important;
}

.yoast-breadcrumbs span span a {
  font-size: 1em;
}

:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {
  background-color: var(--wp--preset--color--custom-dark-blue);
}

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

/* Accordion */

.wp-block-details {
  padding: 20px 25px 20px 25px;
  width: -webkit-fill-available;
}

.wp-block-details summary {
  color: var(--wp--preset--color--custom-blue);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--large);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wp-block-details summary::marker {
  content: none;
}

.wp-block-details summary::after {
  content: " +";
  float: right;
  text-align: right;
  font-size: 1em !important;
  font-weight: 500;
}

.wp-block-details[open] summary::after {
  content: " -";
  color: var(--wp--preset--color--custom-dark-blue);
  font-size: 1em !important;
  line-height: 1;
}

/* Form */

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  border: none;
  padding: 1.25em 1.5em !important;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 200;
  font-size: 17px;
  background: var(--wp--preset--color--custom-white);
  width: -webkit-fill-available;
  margin-bottom: 1em;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #666;
  font-weight: 200;
}

.wpcf7 .wpcf7-submit {
  background: var(--wp--preset--color--custom-blue);
  color: var(--wp--preset--color--custom-white);
  border: none;
  padding: 0.8em 1.75em !important;
  transition: all 0.25s;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 400;
  width: fit-content;
  font-size: 17px;
  float: right;
  border-radius: 2em;
  line-height: 1.4;
}

.wpcf7 .wpcf7-submit:hover {
  cursor: pointer;
  opacity: 0.85;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline-style: none !important;
}

.wpcf7-list-item {
  margin: 0 0 1em 0 !important;
}

.wpcf7-list-item-label {
  font-size: 0.9em;
  color: var(--black);
}

footer .copyright a {
  font-size: var(--wp--preset--font-size--small);
}

details summary {
  user-select: none;
}

::details-content {
  transition: height 0.5s ease, content-visibility 0.5s ease allow-discrete;
  height: 0;
  overflow: clip;
}

/* Browser supports interpolate-size */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  [open]::details-content {
    height: auto;
  }
}

/* Fallback for browsers with no interpolate-size support */
@supports not (interpolate-size: allow-keywords) {
  [open]::details-content {
    height: 150px;
    overflow-y: scroll; /* In case the contents should be taller than 150px */
  }
}

.items-start {
  align-items: flex-start;
}

@media (max-width: 1200px) {
  .mb-padding {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  footer .sectors,
  footer .finance,
  footer .quicklinks {
    flex-basis: 20% !important;
  }
}

@media (max-width: 884px) {
  .mb-padding {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

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

  .key-numbers .mb-grid-1 .wp-block-group {
    border-right-color: unset !important;
    border-right-width: 0 !important;
    border-bottom-width: 2px !important;
    border-bottom-color: var(--wp--preset--color--custom-blue) !important;
    border-bottom-style: solid;
  }

  .key-numbers .mb-grid-1 .wp-block-group:last-child {
    border: none !important;
  }

  .mb-flex-col {
    flex-direction: column !important;
  }

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

  .mb-contact-block .mb-flex-col .wp-block-group {
    border: none !important;
  }
}

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

.wpcf7 form .wpcf7-response-output {
  color: white;
  background-color: #333;
  border-top: none;
  border-bottom: none;
  border-right: none;
  border-left-width: 5px;
  border-left-style: solid;
  padding: 1rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #e7a801;
  border-left-color: #ba8a05;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background-color: #e7a801;
  border-left-color: #ba8a05;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #298531; /* Green */
  border-color: #0f6e17;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background-color: #b00e0e; /* Red */
  border-color: #830303; /* Red */
}

.wpcf7 form.spam .wpcf7-response-output {
  border-color: #9a3706; /* Orange */
  background-color: #bf511b; /* Orange */
}
