/* 
 Theme Name:   cpa-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     cpa-accountant
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary: #3e77a5;
    --secondary: #5A716A;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}

.home #inner-pages-header {
    display: block;
}


.home-btn a {
    color: #fff !important;
    margin-bottom: 0;
}

.content-area {
    margin-top: 2rem;
}

#inner-pages-header .header-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(243, 236, 223, 0.88),
            rgba(216, 201, 174, 0.72));
}

#inner-pages-header .header-overlay::before {
    content: "";
    position: absolute;
    right: clamp(15px, 5vw, 90px);
    bottom: -15px;
    width: clamp(150px, 24vw, 310px);
    height: 90%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 280' fill='none' stroke='%235a716a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M83 221C65 140 124 43 218 16c-3 90-47 171-121 185M70 250L196 42M112 182l-7-53M136 144l-5-48M157 109l-2-38M118 174l49-12M143 133l44-13M164 97l35-12'/%3E%3Cpath d='M45 225h49v16l15 12v24H30v-24l15-12zM45 233h49M44 263h51'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.5;
    transform: rotate(8deg);
}

#inner-pages-header .header-overlay::after {
    content: "";
    position: absolute;
    left: clamp(10px, 3vw, 50px);
    bottom: -30px;
    width: clamp(190px, 30vw, 400px);
    height: 75%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 240' fill='none' stroke='%235a716a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M170 65C126 37 75 37 22 52v142c52-15 102-14 148 13 46-27 96-28 148-13V52c-53-15-104-15-148 13zM170 65v142M22 64L10 68v141c59-17 111-13 160 12 49-25 101-29 160-12V68l-12-4M45 78c35-6 68-1 100 14M45 102c35-6 68-1 100 14M45 126c35-6 68-1 100 14M45 150c35-6 68-1 100 14M195 92c32-15 65-20 100-14M195 116c32-15 65-20 100-14M195 140c32-15 65-20 100-14M195 164c32-15 65-20 100-14'/%3E%3Cg fill='%235a716a' stroke='none'%3E%3Ccircle cx='40' cy='20' r='4'/%3E%3Ccircle cx='54' cy='12' r='2'/%3E%3Ccircle cx='290' cy='25' r='5'/%3E%3Ccircle cx='307' cy='16' r='2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.5;
    transform: rotate(-8deg);
}

@media (max-width: 767px) {
    #inner-pages-header .header-overlay {
        background: linear-gradient(135deg,
                rgba(243, 236, 223, 0.94),
                rgba(216, 201, 174, 0.85));
    }

    #inner-pages-header .header-overlay::before {
        top: auto;
        right: -12px;
        bottom: -18px;
        left: auto;
        width: 110px;
        height: 145px;
        opacity: 0.55;
        transform: rotate(12deg);
        background-position: right bottom;
    }

    #inner-pages-header .header-overlay::after {
        display: none;
    }
}

.error-span {
    display: inline-block;
    position: relative;
    padding: 0.15em 0.3em;
    color: #f8fafc;
    font-family: monospace;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    text-shadow:
        -3px 0 #ff2d75,
        3px 0 #22d3ee,
        0 0 25px rgb(34 211 238 / 35%);
    animation: error-float 3s ease-in-out infinite;
}

.error-span::after {
    content: "";
    position: absolute;
    inset: 15% 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            transparent 0 5px,
            rgb(15 23 42 / 20%) 5px 7px);
    animation: error-scan 1.5s linear infinite;
}

.error-span:hover {
    animation: error-glitch 0.35s steps(2, end) infinite;
}

@keyframes error-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes error-scan {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 14px;
    }
}

@keyframes error-glitch {

    0%,
    100% {
        transform: translate(0);
        text-shadow: -3px 0 #ff2d75, 3px 0 #22d3ee;
    }

    25% {
        transform: translate(-2px, 1px) skewX(-4deg);
        text-shadow: 4px 0 #ff2d75, -4px 0 #22d3ee;
    }

    75% {
        transform: translate(2px, -1px) skewX(4deg);
        text-shadow: -5px 0 #ff2d75, 5px 0 #22d3ee;
    }
}

@media (prefers-reduced-motion: reduce) {

    .error-span,
    .error-span::after,
    .error-span:hover {
        animation: none;
    }
}

.logo img {
    width: revert-layer !important;
}

.site-info p,
.site-info a {
    text-align: inherit;
}

section {
    padding: 15px 0;
    margin: 15px 0;
}

section h2,
section h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

.main-section-style-h3-grid .box {
    position: relative;
    isolation: isolate;
    height: 100%;
    padding: 2rem 1.75rem 1rem;
    overflow: hidden;
    border: 1px solid #d8c9ae;
    border-radius: 3px 12px 12px 3px;
    background:
        linear-gradient(90deg, rgba(114, 80, 38, 0.09), transparent 16%),
        #f7f1e5;
    color: #40372c;
    box-shadow:
        inset 5px 0 0 #5a716a,
        inset 8px 0 0 #e4d7bf,
        0 8px 24px rgba(64, 48, 28, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main-section-style-h3-grid .box::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 12px;
    border: 1px solid rgba(146, 113, 65, 0.25);
    border-radius: 1px 5px 5px 1px;
    pointer-events: none;
}

.main-section-style-h3-grid .box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    width: 22px;
    height: 36px;
    background: #5a716a;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    pointer-events: none;
}

.main-section-style-h3-grid .box:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 5px 0 0 #5a716a,
        inset 8px 0 0 #e4d7bf,
        0 14px 30px rgba(64, 48, 28, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .main-section-style-h3-grid .box {
        transition: none;
    }

    .main-section-style-h3-grid .box:hover {
        transform: none;
    }
}

.main-section-style-h3-grid .box a {
    text-decoration: underline !important;
}

.styled {
    position: relative;
    isolation: isolate;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #d8c9ae;
    border-radius: 4px;
    background:
        radial-gradient(ellipse at top left, #fffaf0, transparent 65%),
        #f3ecdf;
    color: #40372c;
    box-shadow: 0 10px 30px rgba(64, 48, 28, 0.08);
}

.styled::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border: 1px solid rgba(146, 113, 65, 0.3);
    pointer-events: none;
}

.styled::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    width: 64px;
    height: 48px;
    transform: translateX(-50%);
    background-color: #f3ecdf;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48' fill='none' stroke='%235a716a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M25 34C22 19 36 5 53 4c-1 16-10 28-25 28M23 39L47 10M33 27l-1-9M39 20l8-1'/%3E%3Cpath d='M15 33h12v5l4 3v5H11v-5l4-3z' fill='%235a716a'/%3E%3Cpath d='M15 33h12' stroke='%23f3ecdf'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 52px 40px;
    pointer-events: none;
    border: 1px solid rgba(146, 113, 65, 0.3);
}

.styled h2 {
    position: relative;
    margin: 0 0 1.75rem;
    padding: 0 0 0.85rem;
    border: 0;
    background: none;
    color: #40372c;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

.styled h2::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 130px;
    height: 5px;
    transform: translateX(-50%);
    border-top: 1px solid #b99a65;
    border-bottom: 1px solid #b99a65;
}

.styled h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    border: 1px solid #b99a65;
    background: #f3ecdf;
}

.styled-box {
    position: relative;
    isolation: isolate;
    margin: 3rem 0;
    padding: 2rem;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(to bottom,
            transparent calc(100% - 1px),
            rgba(90, 113, 106, 0.1) 1px) 0 0 / 100% 28px,
        #faf6ed;
    color: #40372c;
    box-shadow: 0 8px 24px rgba(64, 48, 28, 0.07);
}

.styled-box::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 5px;
    border-left: 1px solid rgba(159, 91, 75, 0.35);
    border-right: 1px solid rgba(159, 91, 75, 0.2);
    pointer-events: none;
}

.styled-box::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 90px;
    height: 22px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(185, 154, 101, 0.25);
    border: 1px solid rgba(185, 154, 101, 0.15);
    pointer-events: none;
}

.styled-box h2 {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 0 0 0.75rem;
    border: 0;
    background: none;
    color: #40372c;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

.styled-box h2::before {
    content: "“";
    display: inline-block;
    margin-right: 0.2em;
    color: #9a7951;
    font-family: Georgia, serif;
    font-size: 1.5em;
    line-height: 0;
    vertical-align: -0.15em;
}

.styled-box h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            #9a7951,
            rgba(154, 121, 81, 0.1) 70%,
            transparent);
}


.back-to-top:hover::after {
    transform: translate(25%, -25%);
    background: var(--primary);
    z-index: 9;
}


.primary-menu li:hover .icon,
.primary-menu li a:hover {
    color: var(--primary);
    transition: all 0.3s ease;
}

.primary-menu li.current-menu-item>a,
.primary-menu li.current-menu-item>.link-icon-wrapper>a {
    color: var(--primary);
}