/* ======================================================
   PETERDENG.LAN
   TAX SERVICES — V3
   Compact service rows + sticky sidebar
   ====================================================== */

body.page-id-37 {
    --taxx-green-950: #052d19;
    --taxx-green-900: #083b21;
    --taxx-green-800: #14572f;
    --taxx-green-700: #1d6a3b;

    --taxx-gold: #d4b36a;
    --taxx-gold-soft: #f5edda;

    --taxx-ink: #102018;
    --taxx-muted: #65736b;
    --taxx-line: #dde5df;
    --taxx-soft: #f5f7f5;
    --taxx-white: #fff;

    --taxx-radius: 14px;
}

body.page-id-37 .taxx-page {
    overflow: visible;
    background: #fff;
}

body.page-id-37 .taxx-page > .wp-block-group {
    margin-block-start: 0;
}

body.page-id-37 .taxx-page .alignfull {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* ======================================================
   HERO — CLEAN / NO RANDOM CIRCLES
   ====================================================== */

body.page-id-37 .taxx-hero {
    position: relative;

    padding:
        68px
        max(24px, calc((100vw - 1180px) / 2))
        64px;

    color: #fff;

    /*
     * Deliberately simple:
     * no radial background
     * no circles
     * no pseudo-element artwork
     */
    background:
        linear-gradient(
            105deg,
            #052d19 0%,
            #0a4024 67%,
            #12562f 100%
        );
}

body.page-id-37 .taxx-hero::before,
body.page-id-37 .taxx-hero::after {
    content: none !important;
    display: none !important;
}

body.page-id-37 .taxx-hero-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
}

body.page-id-37 .taxx-kicker {
    margin: 0 0 11px;

    color: var(--taxx-green-700);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .17em;
    line-height: 1.2;

    text-transform: uppercase;
}

body.page-id-37 .taxx-kicker-light {
    color: #dbe9df;
}

body.page-id-37 .taxx-hero-title {
    max-width: 700px;
    margin: 0;

    color: #fff;

    font-size: clamp(2.75rem, 4.6vw, 4.35rem);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: .98;
}

body.page-id-37 .taxx-hero-copy {
    max-width: 610px;
    margin: 20px 0 0;

    color: rgba(255,255,255,.76);

    font-size: 1rem;
    line-height: 1.7;
}

body.page-id-37 .taxx-hero-actions {
    gap: 10px;
    margin-top: 28px;
}

body.page-id-37
.taxx-hero-actions
.wp-block-button__link {
    min-height: 48px;

    padding: 13px 19px;

    border-radius: 3px;

    font-size: 13px;
    font-weight: 800;
}

body.page-id-37
.taxx-primary-button
.wp-block-button__link {
    color: var(--taxx-green-950);
    background: var(--taxx-gold);
}

body.page-id-37
.taxx-secondary-button
.wp-block-button__link {
    color: #fff;
    border-color: rgba(255,255,255,.44);
    background: transparent;
}

/* ======================================================
   MAIN TWO-COLUMN LAYOUT
   ====================================================== */

body.page-id-37 .taxx-layout-shell {
    padding: 72px 24px 92px;
}

body.page-id-37 .taxx-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: start;

    width: min(100%, 1180px);
    margin: 0 auto;

    gap: 48px;
}

body.page-id-37 .taxx-content-column {
    min-width: 0;
}

body.page-id-37 .taxx-body {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ======================================================
   INTRO
   ====================================================== */

body.page-id-37
.taxx-body > .pd-kicker:first-child {
    text-align: left;
}

body.page-id-37
.taxx-body > h2:first-of-type {
    max-width: 680px;

    margin:
        0
        0
        16px;

    color: var(--taxx-green-950);

    font-size: clamp(2rem, 3.2vw, 2.9rem);
    letter-spacing: -.037em;
    line-height: 1.04;

    text-align: left;
}

body.page-id-37
.taxx-body > h2:first-of-type + p {
    max-width: 720px;

    margin:
        0
        0
        36px;

    color: var(--taxx-muted);

    font-size: .98rem;
    line-height: 1.75;

    text-align: left;
}

/* ======================================================
   SERVICE AREA
   New look:
   compact horizontal service rows
   ====================================================== */

body.page-id-37
.taxx-body > .wp-block-columns {
    gap: 16px;

    margin:
        0
        0
        16px;
}

body.page-id-37
.taxx-body > .wp-block-columns
> .wp-block-column {
    display: grid;
    align-content: start;

    gap: 16px;
}

body.page-id-37 .pd-service-card {
    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    grid-template-rows:
        auto
        auto;

    column-gap: 18px;
    row-gap: 6px;

    align-items: start;

    min-height: 0;

    padding: 22px 22px 23px;

    border: 1px solid var(--taxx-line);
    border-radius: var(--taxx-radius);

    background: #fff;

    box-shadow:
        0 7px 22px rgba(5,45,25,.045);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

body.page-id-37 .pd-service-card:hover {
    border-color: #bfd0c4;

    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(5,45,25,.08);
}

/* Icon becomes left-side rail */

body.page-id-37
.pd-service-card > figure {
    grid-column: 1;
    grid-row: 1 / span 2;

    display: block;

    width: 58px;
    height: 58px;

    margin: 0;

    border: 1px solid #dce7df;
    border-radius: 13px;

    background-color: #f5f8f6;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 34px 34px;
}

body.page-id-37
.pd-service-card > figure img {
    display: none !important;
}

body.page-id-37
.pd-service-card > h3 {
    grid-column: 2;
    grid-row: 1;

    margin:
        2px
        0
        0;

    color: var(--taxx-green-950);

    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

body.page-id-37
.pd-service-card > p {
    grid-column: 2;
    grid-row: 2;

    margin: 0;

    color: var(--taxx-muted);

    font-size: .84rem;
    line-height: 1.62;
}

/* Icons */

body.page-id-37
.pd-service-card
figure:has(img.wp-image-453) {
    background-image:
        url("../icons/tax-services/investment.svg");
}

body.page-id-37
.pd-service-card
figure:has(img.wp-image-451) {
    background-image:
        url("../icons/tax-services/payroll.svg");
}

body.page-id-37
.pd-service-card
figure:has(img.wp-image-450) {
    background-image:
        url("../icons/tax-services/saving.svg");
}

body.page-id-37
.pd-service-card
figure:has(img.wp-image-449) {
    background-image:
        url("../icons/tax-services/consulting.svg");
}

body.page-id-37
.pd-service-card
figure:has(img.wp-image-452) {
    background-image:
        url("../icons/tax-services/international.svg");
}

body.page-id-37
.pd-service-card
figure:has(img.wp-image-448) {
    background-image:
        url("../icons/tax-services/accounting.svg");
}

/* ======================================================
   LONG-FORM CONTENT
   ====================================================== */

body.page-id-37
.taxx-body > h4,
body.page-id-37
.taxx-body > h3,
body.page-id-37
.taxx-body > p,
body.page-id-37
.taxx-body > hr {
    width: 100%;
    max-width: 790px;

    margin-left: 0;
    margin-right: 0;
}

body.page-id-37 .taxx-body > h4 {
    margin-top: 45px;
    margin-bottom: 11px;

    color: var(--taxx-green-950);

    font-size: 1.2rem;
    line-height: 1.3;
}

body.page-id-37 .taxx-body > h3 {
    margin-top: 31px;
    margin-bottom: 8px;

    color: var(--taxx-green-950);

    font-size: 1.04rem;
    line-height: 1.3;
}

body.page-id-37 .taxx-body > p {
    color: var(--taxx-muted);

    font-size: .94rem;
    line-height: 1.77;
}

body.page-id-37 .taxx-body > hr {
    margin-top: 42px;

    border-color: var(--taxx-line);
}

/* ======================================================
   STICKY SIDEBAR
   ====================================================== */

body.page-id-37 .taxx-sidebar {
    position: sticky;
    top: 112px;

    display: grid;
    gap: 16px;

    min-width: 0;
}

body.page-id-37 .taxx-side-card {
    padding: 24px;

    border: 1px solid var(--taxx-line);
    border-radius: var(--taxx-radius);

    background: #fff;

    box-shadow:
        0 8px 26px rgba(5,45,25,.045);
}

body.page-id-37 .taxx-side-label {
    display: block;

    margin-bottom: 11px;

    color: var(--taxx-green-700);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
    line-height: 1.2;

    text-transform: uppercase;
}

body.page-id-37 .taxx-side-book {
    border-top:
        4px
        solid
        var(--taxx-gold);
}

body.page-id-37 .taxx-side-book h2 {
    margin:
        0
        0
        10px;

    color: var(--taxx-green-950);

    font-size: 1.45rem;
    letter-spacing: -.025em;
    line-height: 1.08;
}

body.page-id-37 .taxx-side-book p,
body.page-id-37 .taxx-side-checklist p {
    margin:
        0
        0
        17px;

    color: var(--taxx-muted);

    font-size: .84rem;
    line-height: 1.6;
}

body.page-id-37 .taxx-side-primary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 46px;

    padding: 12px 14px;

    color: #fff;

    background: var(--taxx-green-800);

    text-decoration: none;

    font-size: .82rem;
    font-weight: 800;
}

body.page-id-37
.taxx-side-primary:hover {
    background: var(--taxx-green-950);
}

/* Sidebar nav */

body.page-id-37 .taxx-side-links {
    display: grid;
}

body.page-id-37 .taxx-side-links a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    min-height: 45px;

    padding:
        10px
        0;

    border-bottom:
        1px solid
        var(--taxx-line);

    color: var(--taxx-ink);

    text-decoration: none;

    font-size: .85rem;
    font-weight: 700;
}

body.page-id-37
.taxx-side-links a:last-child {
    border-bottom: 0;
}

body.page-id-37 .taxx-side-links b {
    color: #9aa69f;

    font-size: 10px;
    font-weight: 800;
}

body.page-id-37
.taxx-side-links a:hover,
body.page-id-37
.taxx-side-links .is-current {
    color: var(--taxx-green-700);
}

body.page-id-37
.taxx-side-links .is-current b {
    color: var(--taxx-gold);
}

/* Refund links */

body.page-id-37 .taxx-refund-link {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding:
        14px
        0;

    border-bottom:
        1px solid
        var(--taxx-line);

    color: var(--taxx-ink);

    text-decoration: none;
}

body.page-id-37
.taxx-refund-link:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.page-id-37
.taxx-refund-link:first-of-type {
    padding-top: 4px;
}

body.page-id-37
.taxx-refund-link strong,
body.page-id-37
.taxx-refund-link small {
    display: block;
}

body.page-id-37
.taxx-refund-link strong {
    margin-bottom: 2px;

    color: var(--taxx-green-950);

    font-size: .83rem;
}

body.page-id-37
.taxx-refund-link small {
    color: var(--taxx-muted);

    font-size: .73rem;
}

body.page-id-37
.taxx-refund-link b {
    color: var(--taxx-green-700);

    font-size: 15px;
}

/* Checklist */

body.page-id-37 .taxx-side-checklist {
    color: #fff;

    border-color: var(--taxx-green-950);

    background: var(--taxx-green-950);
}

body.page-id-37
.taxx-side-checklist
.taxx-side-label {
    color: var(--taxx-gold);
}

body.page-id-37
.taxx-side-checklist h3 {
    margin:
        0
        0
        9px;

    color: #fff;

    font-size: 1.08rem;
    line-height: 1.25;
}

body.page-id-37
.taxx-side-checklist p {
    color: rgba(255,255,255,.68);
}

body.page-id-37
.taxx-side-checklist > a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    color: var(--taxx-gold);

    text-decoration: none;

    font-size: .8rem;
    font-weight: 800;
}

/* ======================================================
   PAGE-SPECIFIC FINAL CTA
   Hidden on frontend because global footer already has CTA.
   ====================================================== */

body.page-id-37 .taxx-final {
    display: none !important;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1000px) {

    body.page-id-37 .taxx-layout {
        grid-template-columns:
            minmax(0, 1fr)
            270px;

        gap: 30px;
    }
}

@media (max-width: 840px) {

    body.page-id-37 .taxx-layout {
        grid-template-columns: 1fr;
    }

    body.page-id-37 .taxx-sidebar {
        position: static;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {

    body.page-id-37 .taxx-hero {
        padding:
            54px
            20px
            52px;
    }

    body.page-id-37 .taxx-hero-title {
        font-size:
            clamp(
                2.6rem,
                12vw,
                3.6rem
            );
    }

    body.page-id-37 .taxx-layout-shell {
        padding:
            54px
            20px
            66px;
    }

    body.page-id-37
    .taxx-body > .wp-block-columns {
        display: block;
    }

    body.page-id-37
    .taxx-body > .wp-block-columns
    > .wp-block-column {
        margin-bottom: 14px;
    }

    body.page-id-37 .pd-service-card {
        grid-template-columns:
            52px
            minmax(0, 1fr);

        padding: 19px;

        column-gap: 14px;
    }

    body.page-id-37
    .pd-service-card > figure {
        width: 52px;
        height: 52px;

        background-size:
            31px
            31px;
    }

    body.page-id-37 .taxx-sidebar {
        grid-template-columns: 1fr;
    }
}


/* PETERDENG TAX SERVICES V4 CARD OVERRIDE START */

/* ======================================================
   V4 SERVICE CARD LAYOUT
   Different approach:
   - cleaner 2-column service board
   - compact cards
   - more reliable icon placement
   ====================================================== */

body.page-id-37 .taxx-body > .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start !important;
    margin: 0 0 22px !important;
}

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
    margin: 0 !important;
}

body.page-id-37 .pd-service-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-areas:
        "title icon"
        "text  icon";
    column-gap: 18px;
    row-gap: 8px;
    align-items: start;
    min-height: 0 !important;
    height: auto !important;
    padding: 22px 22px 20px;
    border: 1px solid var(--taxx-line);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    box-shadow: 0 8px 24px rgba(5,45,25,.045);
    overflow: hidden;
}

body.page-id-37 .pd-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 4px;
    background: var(--taxx-gold);
    border-radius: 16px 0 8px 0;
}

body.page-id-37 .pd-service-card:hover {
    transform: translateY(-2px);
    border-color: #c7d6cb;
    box-shadow: 0 16px 34px rgba(5,45,25,.08);
}

body.page-id-37 .pd-service-card > h3 {
    grid-area: title;
    margin: 2px 0 0 !important;
    color: var(--taxx-green-950);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.28;
}

body.page-id-37 .pd-service-card > p {
    grid-area: text;
    margin: 0 !important;
    color: var(--taxx-muted);
    font-size: .84rem;
    line-height: 1.66;
}

body.page-id-37 .pd-service-card > figure {
    grid-area: icon;
    align-self: start;
    justify-self: end;
    display: block;
    width: 58px;
    height: 58px;
    min-width: 58px;
    margin: 0 !important;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background-color: #f5f8f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 33px 33px;
}

body.page-id-37 .pd-service-card > figure img {
    display: none !important;
}

/* ------------------------------------------------------
   Stronger icon mapping by structural position
   Left column:
     1 Investment
     2 Saving
     3 Business Consulting
   Right column:
     1 Payroll Services
     2 International Tax
     3 Accounting
   ------------------------------------------------------ */

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column:first-child .pd-service-card:nth-of-type(1) > figure {
    background-image: url("../icons/tax-services/investment.svg");
}

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column:first-child .pd-service-card:nth-of-type(2) > figure {
    background-image: url("../icons/tax-services/saving.svg");
}

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column:first-child .pd-service-card:nth-of-type(3) > figure {
    background-image: url("../icons/tax-services/consulting.svg");
}

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column:last-child .pd-service-card:nth-of-type(1) > figure {
    background-image: url("../icons/tax-services/payroll.svg");
}

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column:last-child .pd-service-card:nth-of-type(2) > figure {
    background-image: url("../icons/tax-services/international.svg");
}

body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column:last-child .pd-service-card:nth-of-type(3) > figure {
    background-image: url("../icons/tax-services/accounting.svg");
}

/* Fallback support for old image-class mapping too */

body.page-id-37 .pd-service-card figure:has(img.wp-image-453) {
    background-image: url("../icons/tax-services/investment.svg");
}
body.page-id-37 .pd-service-card figure:has(img.wp-image-451) {
    background-image: url("../icons/tax-services/payroll.svg");
}
body.page-id-37 .pd-service-card figure:has(img.wp-image-450) {
    background-image: url("../icons/tax-services/saving.svg");
}
body.page-id-37 .pd-service-card figure:has(img.wp-image-449) {
    background-image: url("../icons/tax-services/consulting.svg");
}
body.page-id-37 .pd-service-card figure:has(img.wp-image-452) {
    background-image: url("../icons/tax-services/international.svg");
}
body.page-id-37 .pd-service-card figure:has(img.wp-image-448) {
    background-image: url("../icons/tax-services/accounting.svg");
}

/* Slightly tighter intro spacing above service board */

body.page-id-37 .taxx-body > h2:first-of-type + p {
    margin-bottom: 28px;
}

/* Mobile */

@media (max-width: 680px) {
    body.page-id-37 .taxx-body > .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.page-id-37 .taxx-body > .wp-block-columns > .wp-block-column {
        gap: 14px;
    }

    body.page-id-37 .pd-service-card {
        grid-template-columns: minmax(0, 1fr) 52px;
        column-gap: 14px;
        padding: 18px 18px 17px;
    }

    body.page-id-37 .pd-service-card > figure {
        width: 52px;
        height: 52px;
        min-width: 52px;
        background-size: 30px 30px;
    }
}

/* PETERDENG TAX SERVICES V4 CARD OVERRIDE END */

