/*
Theme Name: GM Kaland
Theme URI: https://glutenmenteskaland.szatmaritimea.hu/
Author: Freefrom Design
Author URI: https://freefromdesign.hu
Description: GM Kaland Theme is a clean and friendly WordPress theme designed specifically for the Gluténmentes Kaland website. It features a custom homepage layout, accessible design, and optimized structure for blogging, service pages, and user-friendly navigation.
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: gm-kaland
Tags: responsive, modern, custom-background, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400..900;1,400..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');


:root {
    --body-txt: #1C1D1E;
    --light-bg: #FFF7F0;
    --primary: #06BAD4;
    --secondary: #FCD200;
    --lightblue: #B4EBF2;
    --lightyellow: #FFF3B7;
    --radius: 1.4rem;
    --border: 3px solid var(--primary);
    --border-yellow: 3px solid var(--secondary);
}

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

html {
    font-size: 1.26vw;
    /* 22px */
}

@media only screen and (min-width: 1920px) {
    html {
        font-size: 1.1vw;
    }
}

@media only screen and (max-width: 1281px) {
    html {
        font-size: 18px;
    }
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 18px;
    }
}

@media only screen and (max-width: 480px) {
    html {
        font-size: 18px;
    }
}

body {
    margin: 0;
    padding: 0;
    color: var(--body-txt);
    font-family: "Nunito Sans", sans-serif;
    overflow-x: hidden;
}

p {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a,
#main-menu ul li.current-menu-item {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

.button:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover,
.about .wp-block-button a:hover {
    transform: scale(1.08);
}

.blog-archive .wp-block-read-more:hover,
.services .wp-block-post-excerpt__more-link:hover,
.box-style .button:hover {
    transform: translateX(-50%) scale(1.08);
}

.button:hover,
.wp-block-button a:hover,
.wp-block-post-excerpt__more-link:hover,
.about .wp-block-button a,
.about .wp-block-button a:hover,
.blog-archive .wp-block-button a,
.services .wp-block-post-excerpt__more-link,
.archive .button,
.single .button,
.wp-block-read-more,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
    background-color: var(--secondary) !important;
    color: var(--body-txt);
    border: none;
}

.background-primary,
.blog-archive .wp-block-button a:hover,
.services .wp-block-post-excerpt__more-link:hover,
.archive .button:hover,
.newsletter-button:hover,
.contact .button,
summary,
.single .button:hover,
.wp-block-read-more:hover {
    background-color: var(--primary) !important;
    color: var(--body-txt) !important;
}

p,
li {
    line-height: 1.5rem;
}

ul {
    padding-left: 20px;
}

ul li::marker {
    color: var(--primary);
}

ol {
    padding-left: 1.5rem;
}

ol li::marker {
    font-weight: bold;
}

ol li {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding-left: 10px;
}

ol li::before {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    display: block;
    position: absolute;
    left: -1.5rem;
    top: 0;
    z-index: -1;
    border-radius: 50%;
}

h1,
h2,
h3,
summary {
    font-family: "Alegreya", serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 1rem 0;
    padding: 0;

}

h1 {
    margin-top: 0;
    font-size: 2.72rem;
    position: relative;
    line-height: 1.4;
}

.hero {
    position: relative;
    z-index: 10;
}

.home h1 {
    padding-bottom: 1rem;
}

.home h2,
.custom-block section:first-of-type h2 {
    margin-top: 4rem;
}

h2 {
    font-size: 2rem;
    position: relative;
}

h3,
summary {
    font-size: 1.73rem;
}

h2 a,
h3 a {
    color: inherit;
}

.button,
.wp-block-button a,
.wp-block-post-excerpt__more-link,
.wp-block-read-more,
input[type='submit'] {
    padding: 0.9rem 1.5rem;
    color: var(--body-txt);
    background: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    border-radius: 0.7rem;
    display: block;
    margin: 1.5rem auto;
    width: fit-content;
}

.newsletter-button,
.contact .button {
    margin-top: 3rem !important;
    outline: 3px solid transparent;
}

.align-center {
    text-align: center;
}

#head .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo svg {
    width: 80%;
    height: 100%;
    margin: 1.1rem 0;
    max-width: 15rem;
}

#logo svg:hover {
    transform: scale(1.05);
}

#head .cls-1 {
    fill: #06bad4 !important;
}

.hero,
.page-template-page-hero .negative-margin,
.page-template-page-services .negative-margin,
.single .negative-margin {
    padding: 4vw 0;
}

.home .hero,
.page-template-page-services .custom-block {
    padding: 8vw 0;
}

.page-template-page-contact h1 {
    padding-top: 4vw;
}

.page-template-page-contact h1 + p {
    margin-bottom: 3rem;
}

.page-template-page-contact .hero-warning {
    margin-bottom: 0 !important;
}

.page-template-page-services .custom-block {
    padding-bottom: 0;
}

.home .blog h2 {
    margin-top: 3rem;
}

.custom-block {
    position: relative;
}

.top-margin {
    margin-top: 3.7rem;
    padding-bottom: 12rem;
}

.page-id-29 .decor {
    top: -4rem;
}

.box-style,
.home-services ul li figure,
.services ul li,
.blog-archive ul li,
.hero-warning {
    position: relative;
    border-radius: var(--radius);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.25);
    padding: 0;
    overflow: hidden;
}

.box-style .button,
.services .wp-block-post-excerpt__more-link,
.blog-archive ul li .wp-block-read-more {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
    transform-origin: center;
}

.archive .box-style,
.single .box-style,
.blog-archive ul li,
.background-lightblue,
details p,
details ul {
    padding: 0;
    background-color: var(--lightblue);
}

.home .background-lightblue {
    padding-bottom: 10rem;
}

.archive .box-style a,
.single .box-style a {
    color: inherit;
}

.archive h2,
.single .box-style h2,
.blog-archive h3 {
    font-size: 1.55rem;
    padding: 0 1.5rem 5rem 1.5rem;
}

.archive .top-margin {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-warning {
    background: var(--light-bg);
    margin-bottom: 6rem !important;
    padding: 2rem 2.5rem !important;
}

.home-img,
.contact figure,
.single .narrow img {
    border-radius: var(--radius);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.25);
    border: var(--border);
    margin-left: 1rem;
    overflow: hidden;
}

.wide .wp-block-group__inner-container figure {
    margin-left: 0;
}

.border-yellow {
    border: var(--border-yellow);
}

.home figure {
    overflow: hidden;
}

.home #head,
.page-template-page-contact #head,
.contact .wp-block-columns {
    border-bottom: var(--border);
}

.wide {
    width: calc(100vw - 16px);
    position: relative;
    left: calc(50% + 8px);
    margin-left: -50vw;
}

.hero p,
.services {
    margin-bottom: 3rem;
}

.background-blue,
.background-yellow,
.background-hero {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top left;
}

.background-circle,
.background-contact {
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top left;
}

.background-white {
    background: #FFF;
}

.home .background-hero {
    z-index: 10;
}

.clipped-section-bottom {
    clip-path: polygon(100% 0%, 0% 0%, 0.00% 94.80%, 2.00% 94.11%, 4.00% 93.44%, 6.00% 92.79%, 8.00% 92.17%, 10.00% 91.61%, 12.00% 91.11%, 14.00% 90.68%, 16.00% 90.33%, 18.00% 90.06%, 20.00% 89.89%, 22.00% 89.81%, 24.00% 89.82%, 26.00% 89.93%, 28.00% 90.13%, 30.00% 90.42%, 32.00% 90.79%, 34.00% 91.24%, 36.00% 91.76%, 38.00% 92.34%, 40.00% 92.96%, 42.00% 93.62%, 44.00% 94.30%, 46.00% 94.99%, 48.00% 95.68%, 50.00% 96.35%, 52.00% 96.99%, 54.00% 97.58%, 56.00% 98.13%, 58.00% 98.61%, 60.00% 99.02%, 62.00% 99.35%, 64.00% 99.59%, 66.00% 99.74%, 68.00% 99.80%, 70.00% 99.76%, 72.00% 99.63%, 74.00% 99.40%, 76.00% 99.09%, 78.00% 98.69%, 80.00% 98.22%, 82.00% 97.69%, 84.00% 97.10%, 86.00% 96.46%, 88.00% 95.80%, 90.00% 95.11%, 92.00% 94.42%, 94.00% 93.74%, 96.00% 93.08%, 98.00% 92.45%, 100.00% 91.86%);
    overflow: hidden;
}

.clipped-section-top {
    clip-path: polygon(100% 100%, 0% 100%, 0.00% 5.20%, 2.00% 4.51%, 4.00% 3.84%, 6.00% 3.19%, 8.00% 2.57%, 10.00% 2.01%, 12.00% 1.51%, 14.00% 1.08%, 16.00% 0.73%, 18.00% 0.46%, 20.00% 0.29%, 22.00% 0.21%, 24.00% 0.22%, 26.00% 0.33%, 28.00% 0.53%, 30.00% 0.82%, 32.00% 1.19%, 34.00% 1.64%, 36.00% 2.16%, 38.00% 2.74%, 40.00% 3.36%, 42.00% 4.02%, 44.00% 4.70%, 46.00% 5.39%, 48.00% 6.08%, 50.00% 6.75%, 52.00% 7.39%, 54.00% 7.98%, 56.00% 8.53%, 58.00% 9.01%, 60.00% 9.42%, 62.00% 9.75%, 64.00% 9.99%, 66.00% 10.14%, 68.00% 10.20%, 70.00% 10.16%, 72.00% 10.03%, 74.00% 9.80%, 76.00% 9.49%, 78.00% 9.09%, 80.00% 8.62%, 82.00% 8.09%, 84.00% 7.50%, 86.00% 6.86%, 88.00% 6.20%, 90.00% 5.51%, 92.00% 4.82%, 94.00% 4.14%, 96.00% 3.48%, 98.00% 2.85%, 100.00% 2.26%);
    overflow: hidden;
}

.negative-margin {
    margin-top: -5rem;
    padding: 9rem 0 5rem 0;
}

.hero-message {
    background: var(--lightblue);
    padding: 2rem 0.5rem;
    text-align: center;
    margin-bottom: 1rem !important;
}

.hero-message .wp-block-heading {
    margin: 0;
    padding: 1rem;
}

.decor {
    position: absolute;
    background-repeat: no-repeat;
    width: 90%;
    height: 10rem;
    background-size: contain;
    top: -10rem;
    z-index: 20;
}

.page-template-page-services .decor {
    top: -6rem;
}

.decor-flipped {
    position: absolute;
    background-repeat: no-repeat;
    background-position: left bottom;
    transform: scaleX(-1) scaleY(-1);
    width: 100%;
    height: 10rem;
    z-index: 10;
    background-size: contain;
}

.narrow {
    max-width: 50rem;
    margin: 0 auto;
    padding-bottom: 1.5rem;
}

.home-services ul li {
    position: relative;
}

.home-services ul li a {
    color: inherit;
}

.home-services ul li figure {
    border: 3px solid var(--lightyellow);
}

.home-services ul li h3 {
    position: absolute;
    bottom: 0;
    z-index: 10;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    pointer-events: none;
}

.home-services ul li:hover h3 {
    top: auto;
}

.home-services ul li:hover figure:before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 39.74%, rgba(255, 243, 183, 0.80) 65.64%);
}


.home-services ul li figure:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 243, 183, 0.80) 50%);
    pointer-events: none;
    z-index: 1;
    transform-origin: bottom center;
    transition: transform 0.3s ease;
}

.home-services-outer {
    position: relative;
}

.home-services-outer .decor {
    top: -9rem;
}

.about {
    margin-top: 1.5rem;
}

.about p {
    margin-bottom: 2rem;
}

.slider-container {
    background-color: var(--primary);
    border-radius: var(--radius);
    border: none;
    max-width: 50rem;
    margin: 2rem auto;
    padding: 0.5rem;
    text-align: center;
}

.strong-view .wpmslider-wrapper {
    padding: 2rem 2.5rem 0 2.5rem !important;
}

.wpmslider-pager {
    position: absolute;
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
}

.strong-view.controls-style-buttons:not(.rtl) .wpmslider-prev:before,
.strong-view.controls-style-buttons:not(.rtl) .wpmslider-next:before {
    background: var(--lightblue) !important;
}

.strong-view.pager-style-buttons .wpmslider-pager-link.active:before,
.strong-view.pager-style-buttons .wpmslider-pager-link:hover:before {
    background: var(--secondary) !important;
    width: 15px !important;
}

.strong-view.pager-style-buttons .wpmslider-pager-link:before {
    background: var(--primary) !important;
    width: 15px !important;
}

.strong-view.pager-style-buttons .wpmslider-pager {
    margin: 0;
}

.blog-archive ul li h3 a:hover {
    color: inherit;
}

.blog-archive ul li figure {
    margin: 0 -1.5rem;
}

.blog {
    position: relative;
}

input[type='text'],
input[type='tel'],
input[type='email'],
select,
textarea {
    font-family: inherit;
    border: 2px solid var(--primary);
    background: #fff;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.25);
    padding: 1.2rem;
    border-radius: 0.7rem;
    margin-bottom: 1.5rem;
    width: 100%;
    font-size: 0.8rem;
}

.services ul li {
    background: var(--lightblue);
    position: relative;
    overflow: hidden;
    padding: 0 1.5rem;
}

.services ul li h2 {
    padding: 1rem 3rem;
}

.services .wp-block-post-excerpt {
    min-height: 20rem;
}

.services .wp-block-post-excerpt__excerpt {
    position: absolute;
    top: 8.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.services ul li p,
.post-meta-bottom,
.testimonial-name {
    padding-top: 1rem;
}

.services ul li {
    position: relative;
    z-index: 0;
}

.services ul li:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -2rem;
    width: 120%;
    height: 8rem;
    background: var(--lightblue);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12);
    z-index: -1;
}

.background-offset-top {
    margin-top: -2.5rem;
    padding-top: 4rem;
    z-index: -1;
}

.home .background-yellow h2 {
    margin: 1rem 0;
}

summary,
details p,
details ul {
    margin: 0;
    padding: 2rem 4rem;
}

summary {
    border-bottom: 2px solid var(--lightblue);
}

details:first-of-type summary {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

details:last-of-type p:last-of-type,
details:last-of-type ul:last-of-type {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

details:last-of-type summary {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

details:last-of-type summary.last-open {
    border-radius: 0px;
}

.custom-table {
    border: var(--border);
    border-radius: var(--radius);
    background: var(--lightblue);
}

.custom-table td {
    border: 1px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius) !important;
}

.custom-table {
    padding-bottom: 0;
}

.page-template-page-contact .hero-warning {
    background: var(--lightblue);
    border: var(--border);
}

.page-template-page-hero .negative-margin,
.page-template-page-services .negative-margin {
    margin-top: -8rem;
}

.contact {
    padding-top: 5rem;
    z-index: 10;
}

.contact figure {
    margin-top: 7.6rem;
}

.contact a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact form,
.home-services,
.blog-archive {
    margin-top: 2rem;
    position: relative;
}

.page-template-page-hero .contact,
.page-template-page-services .contact {
    margin-top: -8rem;
    padding-bottom: 3rem;
}

.page-template-page-contact .contact {
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.white-block {
    background-color: #FFF;
    padding: 2rem;
}

.blue-block {
    background-color: var(--lightblue);
    padding: 2rem;
}

.service-section {
    padding: 1rem 0 2rem 0;
}

.service-section .content-box {
    max-width: 75%;
}

.service-section h2 {
    margin: 1.5rem auto;
}

.service-button-div {
    overflow: hidden;
    padding-bottom: 8rem;
}

.single .narrow img {
    margin: 3rem auto 1rem auto;
}

.single .align-center {
    margin-bottom: 2rem;
}

.last-posts {
    border-top: var(--border);
    padding: 2rem 0 4rem 0;
}

.single .hero {
    z-index: 10;
}

.page-id-14 .top-margin,
.single .background-circle {
    padding-bottom: 2rem;
}

.nav-links {
    text-align: center;
    margin-top: 2rem;
}

.nav-links span,
.nav-links a {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    background: var(--lightblue);
    border: 1px solid var(--primary);
}

footer {
    color: #FFF;
    font-size: smaller;
    padding: 2rem 0 0.2rem 0;
}

footer a {
    color: #FFF;
}

footer p {
    padding: 0.2rem 0;
}

footer .row {
    flex-direction: row;
    align-items: center;
}

footer .row .col-1-4 svg {
    width: 80%;

}

#social {
    display: flex;
    flex-wrap: wrap;
}

#social svg {
    width: 2.5rem;
    height: 2.5rem;
    margin: 1rem 0.5rem;
}

#copyright {
    font-size: 0.8rem;
}

@media only screen and (max-width: 1281px) {

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .wide {
        width: 100vw;
        left: 50%;
        overflow: hidden;
    }

    .hero-message h2 {
        font-size: 1.5rem;
    }

    .home-services h3 {
        font-size: 1.5rem;
    }

    .services ul li h2 {
        padding: 1rem;
    }

    .services .wp-block-post-excerpt {
        min-height: 23rem;
    }

    #social svg {
        margin: 1rem 0.25rem;
    }

}

@media only screen and (max-width: 1023px) {

    .home-services-outer h2,
    .about-inner {
        padding-top: 2rem;
    }

    .hero-inner,
    .hero-message-outer,
    .newsletter,
    .about,
    .contact-inner {
        display: block !important;
    }

    .hero-inner,
    .newsletter {
        text-align: center;
    }

    .hero-inner .wp-block-buttons {
        display: block;
    }

    .hero p {
        margin-bottom: 1rem;
    }

    .hero .wp-block-button a {
        margin-bottom: 3rem;
    }

    .clipped-section-bottom {
        clip-path: polygon(100% 0%, 0% 0%, 0.00% 93.71%, 2.00% 93.58%, 4.00% 93.47%, 6.00% 93.36%, 8.00% 93.27%, 10.00% 93.18%, 12.00% 93.12%, 14.00% 93.07%, 16.00% 93.03%, 18.00% 93.01%, 20.00% 93.00%, 22.00% 93.01%, 24.00% 93.03%, 26.00% 93.07%, 28.00% 93.13%, 30.00% 93.20%, 32.00% 93.28%, 34.00% 93.38%, 36.00% 93.48%, 38.00% 93.60%, 40.00% 93.74%, 42.00% 93.88%, 44.00% 94.03%, 46.00% 94.18%, 48.00% 94.35%, 50.00% 94.52%, 52.00% 94.69%, 54.00% 94.86%, 56.00% 95.04%, 58.00% 95.21%, 60.00% 95.39%, 62.00% 95.56%, 64.00% 95.73%, 66.00% 95.89%, 68.00% 96.04%, 70.00% 96.19%, 72.00% 96.32%, 74.00% 96.45%, 76.00% 96.57%, 78.00% 96.67%, 80.00% 96.76%, 82.00% 96.84%, 84.00% 96.90%, 86.00% 96.95%, 88.00% 96.98%, 90.00% 97.00%, 92.00% 97.00%, 94.00% 96.99%, 96.00% 96.96%, 98.00% 96.91%, 100.00% 96.85%);
    }

    .clipped-section-top {
        clip-path: polygon(100% 100%, 0% 100%, 0.00% 3.71%, 2.00% 3.58%, 4.00% 3.47%, 6.00% 3.36%, 8.00% 3.27%, 10.00% 3.18%, 12.00% 3.12%, 14.00% 3.07%, 16.00% 3.03%, 18.00% 3.01%, 20.00% 3.00%, 22.00% 3.01%, 24.00% 3.03%, 26.00% 3.07%, 28.00% 3.13%, 30.00% 3.20%, 32.00% 3.28%, 34.00% 3.38%, 36.00% 3.48%, 38.00% 3.60%, 40.00% 3.74%, 42.00% 3.88%, 44.00% 4.03%, 46.00% 4.18%, 48.00% 4.35%, 50.00% 4.52%, 52.00% 4.69%, 54.00% 4.86%, 56.00% 5.04%, 58.00% 5.21%, 60.00% 5.39%, 62.00% 5.56%, 64.00% 5.73%, 66.00% 5.89%, 68.00% 6.04%, 70.00% 6.19%, 72.00% 6.32%, 74.00% 6.45%, 76.00% 6.57%, 78.00% 6.67%, 80.00% 6.76%, 82.00% 6.84%, 84.00% 6.90%, 86.00% 6.95%, 88.00% 6.98%, 90.00% 7.00%, 92.00% 7.00%, 94.00% 6.99%, 96.00% 6.96%, 98.00% 6.91%, 100.00% 6.85%);
    }

    .home-services-outer .decor {
        top: -7rem;
    }

    .hero .wp-block-group__inner-container {
        margin-bottom: 5rem;
    }

    .negative-margin {
        margin-top: -7rem;
    }

    .decor,
    .decor-flipped {
        height: 7.5rem;
    }

    .decor-flipped {
        bottom: -9rem;
    }

    .page-template-page-services .decor {
        top: -4rem;
    }

    .page-template-page-services .hero-warning {
        margin-bottom: 0 !important;
    }

    .page-id-29 .decor {
        top: 0 !important;
    }

    .top-margin .decor {
        top: -8.5rem;
    }

    .home-services ul li h3 {
        width: 70%;
    }

    .archive h2,
    .single .box-style h2,
    .blog-archive h3 {
        font-size: 1.3rem;
        padding: 0 1rem 5rem 1rem;
        word-break: auto-phrase;
    }

    #social svg {
        margin: 0.25rem 0.25rem;
        width: 1.8rem;
        height: 1.8rem;
    }

    .services ul li h2 {
        padding: 0.6rem;
        font-size: 1.5rem;
    }

    .services ul li {
        padding: 0 1rem;
    }

    .services ul li p {
        padding-top: 0;
    }

    .contact-inner {
        margin-top: 3rem;
    }

    .contact figure {
        margin-top: 0;
    }

    .custom-block section:first-of-type h2 {
        margin-top: 9rem;
    }

    .single .narrow img {
        margin-top: 6rem;
    }

    .archive .hero p {
        padding-bottom: 3rem;
    }

    .newsletter .wp-block-spacer {
        max-height: 10px;
    }

    .newsletter figure {
        margin-bottom: 5rem
    }

    .background-yellow {
        margin-top: -4rem;
    }

    .home .background-blue.clipped-section-top {
        margin-top: -2rem;
    }

    .page-id-31 .hero p {
        padding-bottom: 3rem;
    }

    .page-template-page-hero .negative-margin,
    .page-template-page-services .negative-margin {
        margin-top: -10rem;
    }

    .contact .wp-block-columns {
        border-bottom: none;
    }

}

@media only screen and (max-width: 895px) {
    .services .wp-block-post-excerpt {
        min-height: 31rem;
    }
}

@media only screen and (max-width: 769px) {

    h1 {
        font-size: 2.2rem;
        padding-top: 1.5rem;
    }

    .single .box-style h2,
    .blog-archive h3,
    summary {
        font-size: 1.5rem;
    }

    .service-section .content-box {
        max-width: 100%;
    }

    .home-services ul,
    .services ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .blog-archive ul {
        display: block;
    }

    .blog-archive ul li {
        margin-bottom: 1.5rem;
    }

    .services ul li h2 {
        padding: 0.2rem;
    }

    .decor,
    .decor-flipped {
        height: 7rem;
    }

    .home-services ul li h3 {
        width: 80%;
    }

    .single .box-style {
        display: block;
        width: 100%;
    }

    .services .wp-block-post-excerpt {
        min-height: 23rem;
    }

    .services ul li:before {
        height: 5.75rem;
    }

    .services .wp-block-post-excerpt__excerpt {
        top: 6.5rem;
    }

    summary,
    details p,
    details ul {
        padding: 1rem 2rem;
    }

    footer {
        text-align: center;
    }

    footer .row .col-1-4 svg {
        width: 50%;
    }

    #social svg {
        margin: 0.25rem 0.5rem;
    }

    footer #social {
        display: block;
    }

    .page-template-page-services .hero p {
        padding-bottom: 3rem;
    }

    .custom-block section:first-of-type h2 {
        margin-top: 11rem;
    }

    .hero-warning {
        padding: 1.5rem !important;
    }
}

@media only screen and (max-width: 585px) {

    .services .wp-block-post-excerpt {
        min-height: 29rem;
    }
}

@media only screen and (max-width: 480px) {

    #logo svg {
        width: 70%;
        max-width: 13rem;
    }

    .home-services ul,
    .services ul {
        display: block;
    }

    .services ul li {
        margin-bottom: 1.5rem;
    }

    .services ul li:before {
        height: 5rem;
    }

    .services .wp-block-post-excerpt {
        min-height: 17rem;
    }

    .services .wp-block-post-excerpt__excerpt {
        top: 5.5rem;
    }

    .custom-table td {
        padding: 0.8rem;
    }

}
