/*
Theme Name: Abstract Marketing
Theme URI: https://abstractmarketing.ca
Author: Abstract Marketing
Author URI: https://abstractmarketing.ca
Description: This
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abstract-marketing
Tags: full-site-editing
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img:not([class]),
iframe {
    display: block;
}

.wp-block-navigation__responsive-container-open{
  transform-origin: right;
  transform: scaleX(2) scaleY(1.5)
}

.wp-block-navigation__responsive-container-close {
  transform-origin: right;
  transform: scale(1.5)
}

:is(input:not(:is([type='button'], [type='submit'])), select, textarea) {
    background-color: var(--wp--preset--color--base);
    border: 1px solid #bbb;
    border-radius: 5px;
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    line-height: 1.65;
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
    width: 100%;
}

:is(input:focus, textarea:focus, select:focus) {
    outline: 2px solid var(--wp--preset--color--primary);
}

:is(input[type='checkbox'], input[type='image'], input[type='radio']) {
    width: auto;
}

::placeholder {
    color: var(--wp--preset--color--contrast);
    opacity: 0.5;
}

textarea {
    height: 162px;
}

.site-header {
  z-index: 1000;
}

.wp-block-button__link {
    display: flex;
    gap: 4px;
    align-items: center;
}

:is(.wp-block-heading, .wp-block-post-title) a {
    text-decoration: none !important;
}

.wp-block-boldblocks-svg-block {
    pointer-events: none;
}


/*
Animation
*/
::view-transition-group(*) {
    animation-duration: 0.37s;
}

#our-portfolio {
    view-transition-name: our-portfolio;
}

#website-design {
    view-transition-name: page-cover-328
}

#creative-services {
    view-transition-name: page-cover-9
}

#social-media-marketing {
    view-transition-name: page-cover-10
}

#website-design h3 {
    view-transition-name: page-title-328
}

#creative-services h3 {
    view-transition-name: page-title-9
}

#social-media-marketing h3 {
    view-transition-name: page-title-10
}

/*.home-cover { view-transition-name: home-cover; }
::view-transition-new(home-cover) {
  animation: slideDown .5s ease-out;
  z-index: -1 !important;
}*/

/*.site-footer {
    view-transition-name: site-footer;
}*/


@keyframes slideDown {
    from {
        opacity: .5;
        transform: translateY(-100%);
    }
}


/*::view-transition-old(figure-caption),
::view-transition-new(figure-caption) {
  height: auto;
  top: 0;
  transform-origin: top center;
}

::view-transition-old(figure-caption) {
  animation: 0.5s ease both shrink-x;
}

::view-transition-new(figure-caption) {
  animation: 0.5s 0.5s ease both grow-x;
}*/

.wp-block-group:has(> .arrow-container) {
  top: 150px;
}

@media (min-width: 800px) {
    .wp-block-group:has(> .arrow-container) {
      top: 200px;
    }
}

@media (min-width: 1000px) {
    .wp-block-group:has(> .arrow-container) {
      top: 250px;
    }
}

/*
Site Header
*/
.site-header {
    view-transition-name: site-header;
    /*-webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);*/
}

@media (min-width: 992px) {
    .menu-header > a span {
        text-transform: uppercase;
        font-size: 1.2em;
        font-family: 'Big Shoulders Thin', sans-serif;
        letter-spacing: .025em;
    }
}

/* Styled submenus */
.site-header ul.wp-block-navigation > li > .wp-block-navigation__submenu-container {
	border: 0 !important;
	transform: translateY(15px);
}

.site-header mark {
    background-color: transparent;
}

@media (min-width: 992px) {
	.site-header .wp-block-navigation__submenu-container::before {
		content: '';
		position: absolute;
		top: -15px;
		width: 100%;
		height: 14px;
	}

	.site-header mark {
        word-wrap: normal !important;
        border: 0;
        clip-path: inset(50%);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
}



/*
Site Footer
*/
.contacts a[href^="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2' /%3E%3C/svg%3E");
    padding-inline-start: 30px;
    background-repeat: no-repeat;
    background-position: center left;
}

.contacts a[href^="mailto"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 9l9 6l9 -6l-9 -6l-9 6' /%3E%3Cpath d='M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10' /%3E%3Cpath d='M3 19l6 -6' /%3E%3Cpath d='M15 13l6 6' /%3E%3C/svg%3E");
    padding-inline-start: 30px;
    background-repeat: no-repeat;
    background-position: center left;
}

.contacts mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M12 12l-3 2' /%3E%3Cpath d='M12 7v5' /%3E%3C/svg%3E");
    padding-inline-start: 30px;
    background-repeat: no-repeat;
    background-position: center left;
}

.page-id-13 .hf-fields-wrap .wp-block-button {
    display: flex;
    justify-content: center;
}


/*Page Header*/
body.page.has-featured-image .page-header {
  min-height: 50vh !important;
}

body.page.has-featured-image .page-header .wp-block-cover__background {
  opacity: .5 !important;
}



/*
Entry Content
*/

.entry-content {
    container-type: inline-size;
}

.entry-content :is(.alignleft, .alignright) {
    margin-block-end: 1em;
}

.entry-content :is(.alignleft, .alignright):first-child + * {
    margin-top: 0;
}

@container (width < 600px) {
    .entry-content .wp-block-image:is(.alignright, .alignleft) {
        float: none !important;
        margin: 0 0 1.5rem;
        width: 100%;
        text-align: center;
    }

    .entry-content .wp-block-image:is(.alignright, .alignleft) img {
        max-height: 400px;
        width: auto !important;
        display: inline-block !important;
    }
}

.home-testimonials .testimonial {
    padding: 24px;
    border-radius: 10px;
    text-align: center;
}

.home-testimonials {
    overflow: hidden;
    position: relative;
}

.home-testimonials__items {
    display: flex !important;
}

.home-testimonials .testimonial {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 700px) {
    .home-testimonials .testimonial {
        flex: 0 0 50%;
    }
}

@media (min-width: 1200px) {
    .home-testimonials .testimonial {
        flex: 0 0 33.33%;
    }
}

.home-testimonials .testimonial {
    transition:
        opacity 0.2s ease-in-out,
        background 0.2s ease-in-out;
    background: transparent;
}

.home-testimonials .testimonial.is-snapped {
    background: linear-gradient(
        135deg,
        rgb(5, 36, 85) 3%,
        rgb(8, 47, 114) 100%
    );
}

.home-testimonials .testimonial:not(.is-snapped) {
    opacity: 0.5;
}

.home-testimonials__controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
	pointer-events: none;
}

.home-testimonials__controls:focus-within {
    opacity: 1;
}

.home-testimonials:hover .home-testimonials__controls {
    opacity: 1;
	pointer-events: initial;
}



.arrow-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.arrow-1 {
    width: 100px;
    height: 100px;
    background: #00bcd4;
    opacity: 0.5;
    border-radius: 50%;
    position: absolute;
}
.arrow-2 {
    width: 60px;
    height: 60px;
    background: #7bd4fd;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    display: table;
    opacity: 0.8;
}
.arrow-2:before {
    width: 54px;
    height: 54px;
    content: '';
    border: 2px solid #423a3f;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}
.arrow-2 i.fa {
    font-size: 30px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: #423a3f;
}
.animated.hinge {
    animation-duration: 2s !important;
}
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale3d(0.4, 0.4, 0.4);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}
.zoomIn {
    animation: 1s zoomIn 1s infinite !important;
}




.home-projects .project {
    padding: 24px;
    border-radius: 10px;
}

.home-projects {
    overflow: hidden;
    position: relative;
}

.home-projects__items {
    display: flex !important;
}

.home-projects .project {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 782px) {
    .home-projects .project {
        flex: 0 0 50%;
    }
}

@media (min-width: 1200px) {
    .home-projects .project {
        flex: 0 0 33.33%;
    }
}

/* @media (min-width: 1400px) {
    .home-projects .project {
        flex: 0 0 25%;
    }
} */

.home-projects__controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;

	height: 0;
}

.home-projects__controls:focus-within {
    opacity: 1;
}

.home-projects:hover .home-projects__controls {
    opacity: 1;
}

.home-projects li.project,
.home-projects li.project img,
.website-preview img{
    width: 100%;
}

.home-projects li.project img,
.website-preview img {
    object-fit: cover !important;
    object-position: center top;
    transition: object-position 5s linear;
}

.home-projects li.project:hover img,
.website-preview:hover img {
    object-position: center bottom;
}

.page-id-13 .site-main .entry-content {
    margin-bottom: 0 !important;
}

.page-id-13 .hf-fields-wrap textarea[name="MESSAGE"] {
    height: 200px;
}

.page-id-13 .hf-fields-wrap .wp-block-button {
    text-align: center;
}

#innovative-solutions {
    scroll-margin-top: 120px;
}

.leaflet-popup-content-wrapper {
  border-radius: 5px;
}


.leaflet-popup-content-wrapper a {
  color: inherit;
}

.leaflet-container a.leaflet-popup-close-button {
   color: inherit;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: red;
}

.page-header,
.mask-curve {
    mask-size: 100% 100%;
    mask-position: bottom;
    mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg version='1.2' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1003.92 416' width='1004' height='416'%3E%3Cstyle%3E%3C/style%3E%3Cpath fill-rule='evenodd' d='m1004 0v347.6h-1004v-347.6z'/%3E%3Cpath d='m0 344.9v12.4c0 0 177.7 58.8 502 58.8 324.3 0 502-57.9 502-57.9v-13.3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg version='1.2' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' width='1004px' height='1370.8px' viewBox='0 0 1003.9 1370.826'%3E%3Cstyle%3E%3C/style%3E%3Cpath fill-rule='evenodd' d='M 1004 0 L 1004 1302.41 L 0 1302.41 L 0 0 L 1004 0 Z' style=''%3E%3C/path%3E%3Cpath d='M 0 1299.63 L 0 1312.03 C 0 1312.03 177.7 1370.83 502 1370.83 C 826.3 1370.83 1004 1312.93 1004 1312.93 L 1004 1299.63 L 0 1299.63 Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Bouncing entrances  */
@-webkit-keyframes bounceIn {
	from,
	20%,
	40%,
	60%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
	}

	0% {
		opacity: 0;
		-webkit-transform: scale3d(0.3, 0.3, 0.3);
		transform: scale3d(0.3, 0.3, 0.3);
	}

	20% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1);
		transform: scale3d(1.1, 1.1, 1.1);
	}

	40% {
		-webkit-transform: scale3d(0.9, 0.9, 0.9);
		transform: scale3d(0.9, 0.9, 0.9);
	}

	60% {
		opacity: 1;
		-webkit-transform: scale3d(1.03, 1.03, 1.03);
		transform: scale3d(1.03, 1.03, 1.03);
	}

	80% {
		-webkit-transform: scale3d(0.97, 0.97, 0.97);
		transform: scale3d(0.97, 0.97, 0.97);
	}

	to {
		opacity: 1;
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
}
@keyframes bounceIn {
	from,
	20%,
	40%,
	60%,
	80%,
	to {
		-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
	}

	0% {
		opacity: 0;
		-webkit-transform: scale3d(0.3, 0.3, 0.3);
		transform: scale3d(0.3, 0.3, 0.3);
	}

	20% {
		-webkit-transform: scale3d(1.1, 1.1, 1.1);
		transform: scale3d(1.1, 1.1, 1.1);
	}

	40% {
		-webkit-transform: scale3d(0.9, 0.9, 0.9);
		transform: scale3d(0.9, 0.9, 0.9);
	}

	60% {
		opacity: 1;
		-webkit-transform: scale3d(1.03, 1.03, 1.03);
		transform: scale3d(1.03, 1.03, 1.03);
	}

	80% {
		-webkit-transform: scale3d(0.97, 0.97, 0.97);
		transform: scale3d(0.97, 0.97, 0.97);
	}

	to {
		opacity: 1;
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1);
	}
}
.animate__bounceIn {
	--animate-duration: 1s;
	-webkit-animation-duration: calc(1s * 0.75);
	animation-duration: calc(1s * 0.75);
	-webkit-animation-duration: calc(var(--animate-duration) * 0.75);
	animation-duration: calc(var(--animate-duration) * 0.75);
	-webkit-animation-name: bounceIn;
	animation-name: bounceIn;
}

.query-card .wp-block-cover__image-background,
.query-card .wp-block-cover__background {
  transition: transform .25s ease, opacity .25s ease;
}

.query-card:hover .wp-block-cover__image-background {
  transform: scale(1.1) rotate(2deg)
}

.query-card:hover .wp-block-cover__background {
  opacity: 0 !important;
}

:is(.am-project, .single-project) .wp-block-button__link[href=""] {
  display: none;
}

.am-project:has(.wp-block-button__link[href=""]) > .wp-block-group {
  margin-bottom: -40px !important;
}

.home-blog {
    overflow: hidden;
    position: relative;
}

.home-blog__items {
    display: flex !important;
}

.home-blog li.post {
    flex: 0 0 100%;
    min-width: 0;
    padding-inline: 20px;
}

@media (min-width: 700px) {
    .home-blog li.post {
        flex: 0 0 66%;
    }
}

@media (min-width: 1024px) {
    .home-blog li.post {
        flex: 0 0 50%;
    }
}

@media (min-width: 1200px) {
    .home-blog li.post {
        flex: 0 0 33%;
    }
}

.home-blog__controls {
    position: absolute;
    top: 25%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
	height: 0;
}

.home-blog__controls:focus-within {
    opacity: 1;
}

.home-blog:hover .home-blog__controls {
    opacity: 1;
}

.project-type-filter {
	margin: 20px 0;
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}
.filter-link {
	padding: 8px 16px;
	text-decoration: none;
	border: 1px solid #fff;
	border-radius: 4px;
	transition: all 0.3s;
}
.filter-link:hover,
.filter-link.active {
	background: var(--wp--preset--color--primary);
	color: white;
	border-color: var(--wp--preset--color--primary);
}
.wp-block-post {
	view-transition-name: auto;
}
@supports (view-transition-name: auto) {
	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.5s;
	}
}

.wp-block-abstract-marketing-project-types-list {
  padding-inline-start: 1.2em;
  list-style: '→ ';
  font-size: 1.1em;
}

.wp-block-abstract-marketing-project-types-list a {
  display: block;
  padding-block: 4px;
  padding-inline-start: 4px;
  text-decoration: none;
}

.blog-cards {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px;
  padding-inline: 24px;
  justify-content: center;
}

.blog-card {
  margin: 0 !important;
}

.blog-cards > li {
  flex: 100% !important;
  padding: 0 !important;
}

@media (min-width: 850px) {
  .blog-cards > li {
    flex: 0 0 calc(50% - 12px) !important;
  }
}

@media (min-width: 1200px) {
  .blog-cards > li {
    flex: 0 0 calc(33% - 12px) !important;
  }
}

@media (min-width: 850px) {
  .breadcrumb-item {
    font-size: 1rem;
  }
}

body.category-chatham-kent .post-sidebar {
  display: none;
}

@media (min-width: 992px) {
  .hide-on-desktop {
    display: none;
  }
}

@media (max-width: 991px) {
    .footer-lets-talk {
        order: -1;
    }
  .home .footer-lets-talk {
    display: none;
  }

  .home .footer-contact {
    grid-column: 1 / span 2;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
  }
}

.home .hf-fields-wrap :is(input, textarea) {
    text-align: left !important;
}

@media (max-width: 699px) {
  .home-testimonials__controls {
    bottom: -20px;
    top: auto;
  }
}