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

 /* == Add your own styles below this line ==
--------------------------------------------*/
:root {
    --color1: #418fc7;
    --color2: #f5b935;
}

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

#inner-pages-header .header-overlay {
    background: url("/images/hero-bg.webp");
}

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;
}

#inner-pages-header h1 {
    color: #fff !important;
}

#inner-pages-header .innheader-border {
    border-color: #fff !important;
}

section {
    padding: 40px 0;
}

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

.primary-menu>li {
    margin: 3px 8px 6px 8px;
}

@media (min-width: 768px) {
    .me-md-3 {
        margin-right: 1rem !important;
    }

    .ms-md-3 {
        margin-left: 1rem !important;
    }
}


.main-section-style-h3-list .box {
    position: relative;
    padding: 1.6rem 1.75rem;
    height: 100%;

    background: #fff;
    border: 1px solid rgba(65, 143, 199, 0.16);
    border-radius: 14px;

    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.04),
        0 14px 32px rgba(15, 23, 42, 0.07);

    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.main-section-style-h3-list .box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg,
            var(--color1),
            var(--color2));
}

.main-section-style-h3-list .box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1e293b;
    line-height: 1.3;
}

.main-section-style-h3-list .box p:last-child {
    margin-bottom: 0;
}

.main-section-style-h3-list .box:hover {
    transform: translateY(-3px);
    border-color: rgba(65, 143, 199, 0.32);

    box-shadow:
        0 6px 12px rgba(15, 23, 42, 0.05),
        0 18px 38px rgba(65, 143, 199, 0.12);
}

.main-section-style-bordered {
    position: relative;
    padding: 2rem 2.25rem;
    margin-block: 2rem;

    background: linear-gradient(135deg,
            color-mix(in srgb, var(--color1) 5%, var(--body-bg-color)),
            color-mix(in srgb, var(--color2) 4%, var(--body-bg-color)));

    border: 1px solid color-mix(in srgb,
            var(--color1) 18%,
            transparent);

    border-radius: 16px;

    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.04),
        0 16px 36px rgba(15, 23, 42, 0.06);

    overflow: hidden;
}

.main-section-style-bordered::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;

    background: linear-gradient(90deg,
            var(--color1) 0%,
            var(--color1) 65%,
            var(--color2) 100%);
}

.main-section-style-bordered>h2:first-child {
    margin-top: 0;
    padding-bottom: 0.85rem;

    border-bottom: 1px solid color-mix(in srgb,
            var(--body-text-color) 12%,
            transparent);
}

.main-section-style-bordered>*:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .main-section-style-bordered {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
}

.main-section-style-contrast {
    position: relative;
    padding: 2rem;
    margin-block: 2rem;

    background:
        radial-gradient(circle at 90% 15%,
            rgba(245, 185, 53, 0.32),
            transparent 32%),
        radial-gradient(circle at 5% 90%,
            rgba(65, 143, 199, 0.24),
            transparent 35%),
        linear-gradient(135deg,
            #eef7fd 0%,
            #f8fbfd 45%,
            #fff5d9 100%);

    border: 1px solid rgba(65, 143, 199, 0.2);
    border-radius: 16px;

    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.main-section-style-contrast h2 {
    margin-top: 0;
}

.main-section-style-contrast::after {
    content: "";
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 0;

    height: 4px;

    background: linear-gradient(90deg,
            var(--color1),
            var(--color2));

    border-radius: 10px 10px 0 0;
}

@media (max-width: 767.98px) {
    .main-section-style-contrast {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

.main-section-style-h3-grid .box {
    height: 100%;
    padding: 1.5rem;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(245, 185, 53, 0.22),
            transparent 38%),
        linear-gradient(145deg,
            #ffffff 0%,
            #f2f8fc 55%,
            #e6f3fb 100%);

    border: 1px solid rgba(65, 143, 199, 0.2);
    border-radius: 14px;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.05),
        0 14px 30px rgba(65, 143, 199, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.main-section-style-h3-grid .box:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.07),
        0 18px 36px rgba(65, 143, 199, 0.14);
}


.entry-content h2 {
    text-align: center;
    font-weight: 700;
    color: var(--color1);
}


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

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

body {
    background-image: linear-gradient(22.5deg, rgba(67, 67, 67, 0.02) 0%, rgba(67, 67, 67, 0.02) 29%, rgba(47, 47, 47, 0.02) 29%, rgba(47, 47, 47, 0.02) 37%, rgba(23, 23, 23, 0.02) 37%, rgba(23, 23, 23, 0.02) 55%, rgba(182, 182, 182, 0.02) 55%, rgba(182, 182, 182, 0.02) 69%, rgba(27, 27, 27, 0.02) 69%, rgba(27, 27, 27, 0.02) 71%, rgba(250, 250, 250, 0.02) 71%, rgba(250, 250, 250, 0.02) 100%), linear-gradient(67.5deg, rgba(117, 117, 117, 0.02) 0%, rgba(117, 117, 117, 0.02) 14%, rgba(199, 199, 199, 0.02) 14%, rgba(199, 199, 199, 0.02) 40%, rgba(33, 33, 33, 0.02) 40%, rgba(33, 33, 33, 0.02) 48%, rgba(135, 135, 135, 0.02) 48%, rgba(135, 135, 135, 0.02) 60%, rgba(148, 148, 148, 0.02) 60%, rgba(148, 148, 148, 0.02) 95%, rgba(53, 53, 53, 0.02) 95%, rgba(53, 53, 53, 0.02) 100%), linear-gradient(135deg, rgba(190, 190, 190, 0.02) 0%, rgba(190, 190, 190, 0.02) 6%, rgba(251, 251, 251, 0.02) 6%, rgba(251, 251, 251, 0.02) 18%, rgba(2, 2, 2, 0.02) 18%, rgba(2, 2, 2, 0.02) 27%, rgba(253, 253, 253, 0.02) 27%, rgba(253, 253, 253, 0.02) 49%, rgba(128, 128, 128, 0.02) 49%, rgba(128, 128, 128, 0.02) 76%, rgba(150, 150, 150, 0.02) 76%, rgba(150, 150, 150, 0.02) 100%), linear-gradient(90deg, #ffffff, #ffffff);
}