/*
Theme Name: Blocksy Child
Template: blocksy
Version 1.0
*/

@font-face {
    font-family: 'Abovo Fun';
    src: url('fonts/AbovoFunRegular.woff2') format('woff2'),
        url('fonts/AbovoFunRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --theme-content-vertical-spacing: 0;
}

/*Global typography*/
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Abovo Fun'!important;
    margin-block-end: .5rem!important;
}
h1 {
    margin-block-end: 1rem!important;
}
p:not(:has(a)):not(:has(.btn)) { opacity: .8; }
.text-center { text-align: center; }
i { font-size: 1rem; }
ul.list-item { padding-left: 0; }
ul.list-item li {
    list-style-type: none;
    border-bottom: 1px solid var(--theme-palette-color-6);
    margin-bottom: .5rem;
    padding-bottom: .5rem;
}
hr { 
    background-color: var(--theme-palette-color-6)!important;
    margin-bottom: 2rem;
}
.btn {
    position: relative;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    -moz-border-radius: 2rem;
    -webkit-border-radius: 2rem;
    text-decoration: none;
    font-family: 'Abovo Fun';
    font-size: 1.5rem;
    margin-top: 2rem;
    transition: 0.3s;
}
.btn-primary:before {
    content:'';
    position: absolute;
    left: 1.25rem;
    top: 1.133rem;
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('/wp-content/themes/blocksy-child/images/illu-star.svg');
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: center left;
    animation: wiggle 1s infinite alternate;
}
.btn-primary {
    padding-left: 3.5rem;
}
.btn-primary, html .wpcf7 .wpcf7-submit {
    background-color: var(--theme-palette-color-8);
    color: white;
    border: 2px solid var(--theme-palette-color-5);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--theme-palette-color-5);
    color: var(--theme-palette-color-8);
}
.btn-secondary {
    position: relative;
    background-color: var(--theme-palette-color-8);
    color: white;
    border: 2px solid var(--theme-palette-color-8);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--theme-palette-color-5);
    color: var(--theme-palette-color-7);
    border: 2px solid var(--theme-palette-color-7);
}
.btn-outline {
    background-color: var(--theme-palette-color-5);
    color: var(--theme-palette-color-7);
    border: 2px solid var(--theme-palette-color-7);
}
.btn-outline:hover, .btn-outline:focus {
    background-color: var(--theme-palette-color-7);
    color: var(--theme-palette-color-5);
    border: 2px solid var(--theme-palette-color-7);
}

/*Margins*/
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
body .mb-0 { margin-block-end: 0; }
body .mb-1 { margin-block-end: 1rem; }
body .mb-2 { margin-block-end: 2rem; }
body .mb-3 { margin-block-end: 3rem; }
body .mb-4 { margin-block-end: 4rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4, .py-5, .py-6, .py-7, .py-8 { padding-top: 4rem; padding-bottom: 4rem; }

@media (min-width: 768px) {
    .py-5 { padding-top: 5rem; padding-bottom: 5rem; }
    .py-6 { padding-top: 6rem; padding-bottom: 6rem; }
    .py-7 { padding-top: 7rem; padding-bottom: 7rem; }
    .py-8 { padding-top: 8rem; padding-bottom: 8rem; }
}

/*Backgrounds / Illustrations*/
.dark-bg {
    background-color: #4a392b;
}
.dark-bg p, .dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4, .dark-bg h5, .dark-bg h6 {
    color: #dbd9c5;
}
.full-width {
    max-width: 100%!important;
    width: 100%!important;
    padding-left: 2rem;
    padding-right: 2rem;
}
.mw-80, .mw-60, .mw-40 { margin: 0 auto; }
@media (min-width: 768px) {
    .mw-80, .mw-60, .mw-40 { max-width: 80%; }
}
@media (min-width: 1199px) {
    .mw-80 { max-width: 80%; }
    .mw-60 { max-width: 60%; }
    .mw-40 { max-width: 40%; }
}

.bg-illu-1, .bg-illu-2 {
    position: relative;
    overflow: hidden;
}
.bg-illu-1:after, .bg-illu-2:after {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 200%;
    opacity: .75;
}

@media (min-width: 1000px) {
    .bg-illu-1:after, .bg-illu-2:after {
        bottom: -80px;
        background-size: 100%;
    }
}

.bg-illu-1:after {
    background-image: url(/wp-content/themes/blocksy-child/images/illu-block-bg-1.svg);
}
.bg-illu-2:after {
    background-image: url(/wp-content/themes/blocksy-child/images/illu-block-bg-2.svg);
}

.illu-star, .illu-scissor, .illu-plant, .illu-plant-2 {
    position: relative;
}
.illu-star:before, .illu-scissor:before, .illu-plant:before, .illu-plant-2:before {
    content: '';
    position: absolute;
    z-index: 2;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    top: -2rem;
    background-repeat: no-repeat;
    background-size: 100%;
    display: block;
    /* animation: wiggle 1s infinite alternate; */
}

.illu-star:before {
    height: 2.5rem;
    width: 2.5rem;
}
.illu-scissor:before, .illu-plant:before, .illu-plant-2:before {
    height: 5rem;
    width: 3rem;
}

@media (min-width: 1000px) {
    .illu-star:before {
        top: -3rem;
        height: 5rem;
        width: 5rem;
    }
    .illu-scissor:before, .illu-plant:before, .illu-plant-2:before {
        top: -3rem;
        height: 8rem;
        width: 5rem;
    }
}

.illu-star:before {
    background-image: url('/wp-content/themes/blocksy-child/images/illu-star.svg');
}
.illu-scissor:before {
    background-image: url('/wp-content/themes/blocksy-child/images/illu-scissors.svg');
}
.illu-plant:before {
    background-image: url('/wp-content/themes/blocksy-child/images/illu-plant.svg');
}
.illu-plant-2:before {
    background-image: url('/wp-content/themes/blocksy-child/images/illu-plant-2.svg');
}

@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(10deg); }
  30%  { transform: rotate(-8deg); }
  45%  { transform: rotate(6deg); }
  60%  { transform: rotate(-4deg); }
  75%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/*Header*/
.ct-header {
    /* padding-top: 1rem; */
    /* padding-bottom: 1rem;     */
    border-bottom: 2px solid var(--theme-palette-color-4);
}
.site-logo-container img {
    position: relative;
    top: 5px;
    height: 80px!important;
}
@media (min-width: 425px) {
    .site-logo-container img {
        top: 0;
    }
}
@media (min-width: 768px) {
    .site-logo-container img {
        height: 100px!important;
    }
}

[data-sticky*=yes] .ct-container-fluid {
    min-height: 50px!important;
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--theme-palette-color-4)!important;
}
[data-sticky*=yes] .sticky-logo {
    max-width: 100%;
    height: 80px;
}
[data-header*="type-1"] .ct-header [data-row*="middle"] > div {
    width: 100%;
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1000px) {
    #header [data-items] {
        justify-content: space-between;
    }
}

/*Hero*/
.hero {
    position: relative;
    width: 100%!important;
    max-width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    margin-block-end: 0!important;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 1400px) {
    .hero { aspect-ratio: 16/6; }
}

.hero.hero-short {
    aspect-ratio: auto;
    border-bottom: 2px solid var(--theme-palette-color-4)!important;
}
.hero.hero-short:has(+ .slider) {
    border-bottom: 0!important;
}
@media (min-width: 768px) {
    .hero.hero-short { padding: 6rem 1rem; }
}
.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 1rem;
    max-width: 900px;
}
.hero.hero-short .hero-content {
    padding: 4rem 1rem;
}
@media (min-width: 768px) {
    .hero.hero-short .hero-content {
        padding: 0 1rem;
    }   
}
.hero-content p {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--theme-palette-color-5);
}

@media (min-width: 1000px) {
    .hero-content p {
        font-size: 1.5rem;
    }
}

.hero.hero-short .hero-content p, .hero.hero-short .hero-content h1 {
    color: var(--theme-palette-color-4);
}

.hero.hero-short .hero-content p {
    font-size: 1.125rem;
} 

/*Split block*/
.split-block {
    display: flex;
    flex-direction: column;
    max-width: 100%!important;
    width: 100%!important;
}
.split-block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}
@media (min-width: 1000px) {
    .split-block-content {
        padding: 6rem 2rem;
    }
}
.split-block-content-inner {
    max-width: 500px;
    position: relative;
    z-index: 1;
}
.split-block-image {
    position: relative;
}

@media (max-width: 767px) {
    .split-block-image {
        aspect-ratio: 16/12;
    }
}
.split-block-image img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
@media (max-width: 767px) {
    .split-block-content { order: 2;}
    .split-block-image { order: 1; }
}
@media (min-width: 768px) {
    .split-block {
        flex-direction: row;
    }
    .split-block-content, .split-block-image {
        flex: 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 999px) {
    .split-block-content-inner .btn {
        display: block;
        text-align: center;
        border-radius: 3rem;
        margin-top: 0;
        margin-bottom: .75rem;
        width: fit-content;
    }
}

/*Gallery*/
.gallery { max-width: 100%!important; }

/*Footer*/
.ct-footer {
    border-top: 1px solid var(--theme-palette-color-4);
}

.footer-links {
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
}
@media (min-width: 540px) {
    .footer-links {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}
.footer-links a {
    font-size: 14px;
}
.ct-footer [data-column="widget-area-1"] .ct-widget {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
}

@media (min-width: 540px) {
    .ct-footer [data-column="widget-area-1"] .ct-widget {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1000px) {
    .ct-footer [data-column="widget-area-1"] .ct-widget {
        justify-content: flex-end;
    }
}

@media (min-width: 540px) and (max-width: 999px) {
    .ct-footer [data-column="copyright"] { align-items: center!important; }
}

@media (max-width: 999px) {
    .ct-footer [data-column="copyright"] { order: 2; }
    [data-footer*="type-1"] .ct-footer [data-row*="bottom"] > div { gap:1rem; }
}
@media (min-width: 1000px) {
    .ct-footer [data-column="widget-area-1"] {
        flex-direction: row!important;
        justify-content: flex-end!important;
    }
}

/*Social icons*/
.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.social-icon {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--theme-palette-color-4);
    margin-right: .25rem;
}

.social-icon:hover {
    background-color: var(--theme-palette-color-8);
    cursor: pointer;
}

.social-icon a {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.social-icon img {
    width: 1.5rem;
    height: 1.5rem;
}

/*Menu*/
body .menu .ct-menu-link {
    font-family: 'Abovo Fun';
    letter-spacing: 1px;
    font-size: 20px!important;
}

body .ct-menu-link:hover {
    text-decoration: underline;
    text-underline-offset: .3rem;
    color: var(--theme-palette-color-8)!important;
}
body .ct-menu-link[aria-current="page"] {
    color: var(--theme-palette-color-8)!important;
}
[data-header*="type-1"] #offcanvas .ct-panel-inner {
    background-color: #202D1E!important;
}
[data-header*="type-1"] [data-id="trigger"] {
    --theme-icon-size: 22px!important;
}

/*Body*/
body [class*=ct-container]>article {
    width: 100%!important;
    max-width: 100%;
}
:is(.is-layout-flow,.is-layout-constrained)>*:where(:not(h1,h2,h3,h4,h5,h6)) {
    margin-block-end: 0!important;
}

/*Forms*/
html .wpcf7-form-control-wrap input, html .wpcf7-form-control-wrap textarea {
    background-color: white;
    height: 58px;
    margin-top: .5rem;
    font-size: 18px;
}
html .wpcf7-form-control-wrap input:focus, html .wpcf7-form-control-wrap textarea:focus {
    background-color: white;
}
html .wpcf7-form-control-wrap textarea {
    min-height: 80px;
}
html .wpcf7 .wpcf7-submit {
    margin-top: 0!important;
    padding: .5rem 2.5rem;
    border-radius: 2rem;
    font-family: 'Abovo Fun';
    -moz-border-radius: 2rem;
    -webkit-border-radius: 2rem;
    text-decoration: none;
    font-size: 1.5rem;
    margin-top: 2rem;
    transition: 0.3s;
    background-color: var(--theme-palette-color-8);
    color: white;
    border: 2px solid var(--theme-palette-color-8);    
}

html .wpcf7 .wpcf7-submit:focus, html .wpcf7 .wpcf7-submit:hover {
    background-color: var(--theme-palette-color-5);
    color: var(--theme-palette-color-7);
    border: 2px solid var(--theme-palette-color-7);   
}

/*Text slider*/
.slider {
  width: 100%!important;
  max-width: 100%!important;
  height: 58px;
  padding: .25rem 0;
  overflow: hidden;
  background-color: var(--theme-palette-color-8);
  position: relative;
  margin-block-end: 0!important;
}
.slide-track {
  display: flex;
  width: 1500px; /* 300px x 5 slides */
  animation: slide 10s linear infinite;
}
.slider:hover .slide-track {
  animation-play-state: paused;
}
.slide-track {
    width: 3000px;
}
.slide {
  width: 900px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: 'Abovo Fun';
  color: #ffffff;
  font-weight: 400;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 2s; }
.slide:nth-child(3) { animation-delay: 4s; }
.slide:nth-child(4) { animation-delay: 6s; }
.slide:nth-child(5) { animation-delay: 8s; }
.slide:nth-child(6) { animation-delay: 10s; }
.slide:nth-child(7) { animation-delay: 12s; }

/* Horizontal movement */
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-800px); } /* stop before duplicate */
}
.cky-btn-revisit-wrapper {
    background-color: var(--theme-palette-color-4)!important;
}
.cky-consent-bar {
    background-color: var(--theme-palette-color-5)!important;
    border-color: transparent!important;
}
@media (min-width: 1000px) {
    p.cky-title {
        margin-bottom: 0!important;
    }
}
.cky-btn.cky-btn-reject, .cky-btn.cky-btn-customize, .cky-btn.cky-btn-preferences {
    border-color: var(--theme-palette-color-4)!important;
    color: var(--theme-palette-color-4)!important;
}
.cky-btn.cky-btn-accept {
    background-color: var(--theme-palette-color-8)!important;
    border-color: var(--theme-palette-color-8)!important;
}