/*
Theme Name: morphik
Author: Giuseppe Colonna
Author URI: https://www.fleeex.com/
Description: My first responsive HTML5 theme
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
    --navbar-height: 90px;
}

.hero-text {
  font-size: clamp(3.5rem, 2rem + 6vw, 8.75rem) !important;
  letter-spacing: clamp(-2px, -0.25vw, -0.5rem);
}

#masthead {height: var(--navbar-height);}
.brand-footer svg {
    width: 100%;
    height: auto;
}


.footer-navigation.fs-6 * {line-height: 1.6rem;}

body, p, .fs-p {
    font-display: swap;
    -webkit-font-smoothing: antialiased;
}
strong, b,
h1 strong, .fs-1 strong,
h2 strong, .fs-2 strong,
h3 strong, .fs-3 strong,
h4 strong, .fs-4 strong,
h5 strong, .fs-5 strong,
h6 strong, .fs-6 strong {
    -webkit-font-smoothing: antialiased;
    font-weight: 700 !important;
}

h1, .fs-1,
h2, .fs-2,
h3, .fs-3,
h4, .fs-4,
h5, .fs-5,
h6, .fs-6 {
    -webkit-font-smoothing: antialiased;
    letter-spacing: .02rem;
}

/* Default link style */
a {text-decoration: none;}
p a {text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 25%;
    color: currentColor;
    opacity: .8;
}

/* Hover style */
p a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
}

p.has-regular-font-size a {
    padding-bottom: calc(0.26rem - 2px);
}

.icon-in {
    width: 22px !important;
    height: 22px !important;
    border-radius: 0 !important;
}

.sticky-content {
    position: relative;
    height: auto;
    padding: 110px var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
    margin-bottom: -8vh;
    z-index: 9;
}


.wp-block-button__link,
.navigation-cta a {
  transition: all 300ms ease-in-out;
}
.wp-block-button__link:hover,
.navigation-cta a:hover {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
}

/* GENERAL STYLE */
.top-section-blue {position: relative !important;}
.top-section-blue::before {
    content: "";
    position: absolute;
    top: -1px;left: 0;
    display: block;
    width: 0;
    height: 0px;
    width: 100%;
    height: 60px;
    background: var(--dark);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
}

/* ICONS */
.arrow {
    width: 32px;
    height: 32px;
    background-color: var(--dark);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpolygon%20fill%3D%22black%22%20points%3D%2216%2023.3%202.5%209.8%203.2%209.1%2016%2021.9%2028.8%209.1%2029.5%209.8%2016%2023.3%22%20%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpolygon%20fill%3D%22black%22%20points%3D%2216%2023.3%202.5%209.8%203.2%209.1%2016%2021.9%2028.8%209.1%2029.5%209.8%2016%2023.3%22%20%2F%3E%3C%2Fsvg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}
.arrow.text-primary {background-color: var(--primary);}
.arrow.text-secondary {background-color: var(--secondary);}
.arrow.text-tertiary {background-color: var(--tertiary);}
.arrow.text-white {background-color: var(--white);}

.arrow-top-right--white {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpolygon fill='%23FFFFFF' points='8.8 0 8.8 3.4 38.2 3.4 .5 41.2 2.8 43.5 40.6 5.8 40.6 35.2 44 35.2 44 0 8.8 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: inline-block;
  width: 24px;
  height: 24px;
}

/* SWIPER NAV */
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {content: '';}
.swiper-button-next .arrow {transform: rotate(-90deg);}
.swiper-button-prev .arrow {transform: rotate(90deg);}

/* TMP HERO + HIGHLIGHTS */
#content ul {
  list-style: none; /* remove default bullets */
  padding-left: 0em;
}

#content li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  margin-right: 12px;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(50,26,32,0.35);
    top: 0;left: 0;
}
.has-highlights h2[id] {
    scroll-margin-top: calc(var(--navbar-height) + 10px);
}



/* CONTACT FORM */
form p {margin-bottom: 0 !important;}
form label, form input, form textarea {
    width: 100%;
    max-height: 120px;
}

form input, form textarea {
    width: 100%;
    font-size: var(--wp--preset--font-size--paragraph);
    font-family: var(--wp--preset--font-family--sans-serif);
    margin-bottom: .75rem;
    padding: .75rem 0;
    background-color: transparent;
    border: 0px solid transparent;
    border-bottom: 1px solid var(--secondary);
    color: var(--dark);
}

form input::placeholder, form textarea::placeholder {
    color: var(--secondary);
}


form input:-webkit-autofill {
    -webkit-text-fill-color: var(--secondary) !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s; /* hack to suppress yellow bg */
}

form input[type=checkbox] {width: auto;margin-right: .35rem;}
.wpcf7-list-item { margin: 0;}

form input[type=submit] {
    background-color: var(--primary) !important;
    color: white !important;
    border: 0 solid transparent !important;
    width: auto;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0px;
    width: 100%;
}
.wpcf7-spinner {display: block;background-color: var(--secondary);}

@media screen and (max-width: 781px) {
  form input[type=submit] { width: 100%;}
}



*:focus-visible {
    outline: 2px dotted var(--tertiary);
    outline-offset: 2px;
}