/* ============================================================
   INTELLIVEST - TAX & BUSINESS SERVICES
   Page-specific styles only.
   Global typography, colors, buttons and container are inherited
   from main.css wherever possible.
============================================================ */


/* ============================================================
   PAGE
============================================================ */

.taxbiz-page {
    overflow: hidden;
    background: #fff;
}


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

.taxbiz-intro {
    background: #fff;
    padding-block: var(--section-padding, 72px);
}

.taxbiz-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4xl, 80px);
}

.taxbiz-intro__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.taxbiz-intro__circle {
    position: relative;
    width: 100%;
    max-width: 470px;
    aspect-ratio: 1 / 1;
}

/* Decorative copper circle — matches homepage Integrated Approach */
.taxbiz-intro__circle::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: -7px;
    left: -11px;
    border: 4px solid var(--copper, #bd713e);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
}

/* Circular image crop — same inset geometry as homepage */
.taxbiz-intro__circle img {
    position: absolute;
    z-index: 2;
    inset: 9px;
    display: block;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.taxbiz-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-xs, 8px);
    margin-bottom: var(--space-md, 16px);
    color: var(--copper, #bd713e);
    font-size: var(--fs-xs, 12px);
    font-weight: var(--fw-extrabold, 800);
    line-height: 1.3;
    text-transform: uppercase;
}

.taxbiz-eyebrow svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.taxbiz-intro__content h2 {
    margin: 0 0 var(--space-md, 16px);
    color: var(--navy, #072138);
    font-size: var(--fs-h2, 40px);
    font-weight: var(--fw-extrabold, 800);
    line-height: var(--lh-heading, 1.18);
}

.taxbiz-intro__content h2 span {
    color: var(--copper, #bd713e);
}

.taxbiz-intro__content p {
    max-width: 590px;
    margin: 0 0 var(--space-lg, 24px);
    color: var(--body-color, #4c4f52);
    line-height: var(--lh-copy, 1.65);
}


/* ============================================================
   SERVICES SECTION
============================================================ */

.taxbiz-services {
    background: #f4f8fb;
    padding-block: var(--section-padding, 72px);
}

.taxbiz-services__header {
    max-width: 790px;
    margin: 0 auto var(--space-2xl, 48px);
    text-align: center;
}

.taxbiz-section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md, 16px);
    margin-bottom: var(--space-md, 16px);
    color: var(--copper, #bd713e);
    font-size: var(--fs-xs, 12px);
    font-weight: var(--fw-extrabold, 800);
    line-height: 1.3;
    text-transform: uppercase;
}

.taxbiz-section-label > span {
    display: block;
    width: 46px;
    height: 1px;
    background: #7f9bad;
}

.taxbiz-services__header h2 {
    margin: 0 0 var(--space-sm, 12px);
    color: var(--navy, #072138);
    font-size: var(--fs-h2, 40px);
    font-weight: var(--fw-extrabold, 800);
    line-height: var(--lh-heading, 1.18);
}

.taxbiz-services__header h2 span {
    color: var(--copper, #bd713e);
}

.taxbiz-services__header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--body-color, #4c4f52);
    line-height: var(--lh-copy, 1.65);
}


/* ============================================================
   ACCORDION
============================================================ */

.taxbiz-accordion {
    width: min(100%, 1080px);
    margin-inline: auto;
}

.taxbiz-service {
    margin-bottom: var(--space-sm, 12px);
    overflow: hidden;
    border: 1px solid #36546c;
    border-radius: 5px;
    background: transparent;
    box-shadow: 0 2px 3px rgba(7, 33, 56, .12);
}

.taxbiz-service:last-child {
    margin-bottom: 0;
}


/* Accordion header */

.taxbiz-service__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg, 24px);
    width: 100%;
    min-height: 82px;
    padding: var(--space-sm, 12px) var(--space-2xl, 48px);
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.taxbiz-service__toggle:focus-visible {
    outline: 3px solid rgba(189, 113, 62, .35);
    outline-offset: -3px;
}

.taxbiz-service__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: var(--space-md, 16px);
}

.taxbiz-service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.taxbiz-service__icon img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.taxbiz-service__heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.taxbiz-service__heading strong {
    color: var(--navy, #072138);
    font-size: 20px;
    font-weight: var(--fw-extrabold, 800);
    line-height: 1.25;
}

.taxbiz-service__heading > span {
    color: #5e6266;
    font-size: 14px;
    line-height: var(--lh-copy, 1.55);
}

.taxbiz-service__symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d7e4ec;
    color: var(--navy, #072138);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}


/* Open panel */

.taxbiz-service__panel {
    padding-inline: var(--space-2xl, 48px);
    overflow: hidden;
    transition:
        height 0.4s ease,
        opacity 0.3s ease;
    will-change: height, opacity;
}

.taxbiz-service__panel[hidden] {
    display: none;
}

.taxbiz-service__panel-inner {
    margin-left: 68px;
    padding:
        var(--space-lg, 24px)
        0
        var(--space-xl, 32px);
    border-top: 1px solid #d1d9df;
}

.taxbiz-service__description {
    max-width: 760px;
    margin: 0 0 var(--space-lg, 24px);
    color: var(--body-color, #4c4f52);
    line-height: var(--lh-copy, 1.65);
}

.taxbiz-service__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2xl, 48px);
    max-width: 760px;
    margin-bottom: var(--space-lg, 24px);
}

.taxbiz-service__columns h3 {
    margin: 0 0 var(--space-xs, 8px);
    color: var(--navy, #072138);
    font-size: 15px;
    font-weight: var(--fw-extrabold, 800);
    line-height: 1.35;
}

.taxbiz-service__columns ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs, 4px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.taxbiz-service__columns li {
    position: relative;
    padding-left: 20px;
    color: #5b5f63;
    font-size: 14px;
    line-height: 1.55;
}

.taxbiz-service__columns li::before {
    content: "→";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--copper, #bd713e);
}

.taxbiz-service__cta {
    display: inline-flex;
}


/* ============================================================
   RTL
   Polylang / WordPress sets dir="rtl" on Persian pages.
============================================================ */

html[dir="rtl"] .taxbiz-service__toggle {
    text-align: right;
}

html[dir="rtl"] .taxbiz-service__panel-inner {
    margin-left: 0;
    margin-right: 68px;
}

html[dir="rtl"] .taxbiz-service__columns li {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .taxbiz-service__columns li::before {
    right: 0;
    left: auto;
    content: "←";
}

html[dir="rtl"] .taxbiz-intro__content {
    text-align: right;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1024px) {

    .taxbiz-intro__inner {
        gap: var(--space-2xl, 48px);
    }

    .taxbiz-intro__circle {
        max-width: 430px;
    }

    .taxbiz-service__toggle {
        padding-inline: var(--space-xl, 32px);
    }

    .taxbiz-service__panel {
        padding-inline: var(--space-xl, 32px);
    }
}


/* ============================================================
   MOBILE / SMALL TABLET
============================================================ */

@media (max-width: 767px) {



    /* Intro */

    .taxbiz-intro__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl, 32px);
    }

    .taxbiz-intro__visual {
        order: 2;
    }

    .taxbiz-intro__content {
        order: 1;
    }

    .taxbiz-intro__circle {
        width: 100%;
        max-width: 400px;
    }

    .taxbiz-intro__circle::before {
        border-width: 3px;
    }

    .taxbiz-intro__content h2 br {
        display: none;
    }


    /* Services */

    .taxbiz-services__header {
        margin-bottom: var(--space-xl, 32px);
    }

    .taxbiz-section-label {
        gap: var(--space-xs, 8px);
    }

    .taxbiz-section-label > span {
        width: 28px;
    }

    .taxbiz-service__toggle {
        min-height: 76px;
        gap: var(--space-sm, 12px);
        padding: var(--space-sm, 12px) var(--space-md, 16px);
    }

    .taxbiz-service__identity {
        gap: var(--space-sm, 12px);
    }

    .taxbiz-service__icon,
    .taxbiz-service__icon img {
        width: 44px;
        height: 44px;
    }

    .taxbiz-service__icon {
        flex-basis: 44px;
    }

    .taxbiz-service__heading strong {
        font-size: 17px;
    }

    .taxbiz-service__heading > span {
        font-size: 13px;
    }

    .taxbiz-service__symbol {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 21px;
    }

    .taxbiz-service__panel {
        padding-inline: var(--space-md, 16px);
    }

    .taxbiz-service__panel-inner,
    html[dir="rtl"] .taxbiz-service__panel-inner {
        margin-left: 0;
        margin-right: 0;
        padding-top: var(--space-md, 16px);
    }

    .taxbiz-service__columns {
        grid-template-columns: 1fr;
        gap: var(--space-lg, 24px);
    }

    .taxbiz-service__cta {
        width: 100%;
    }
}


/* ============================================================
   SMALL MOBILE — INTRO IMAGE
============================================================ */

@media (max-width: 575px) {

    .taxbiz-intro__circle {
        width: calc(100% - 20px);
        max-width: 360px;
    }
}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .taxbiz-intro__circle {
        max-width: 320px;
    }

    .taxbiz-service__toggle {
        align-items: flex-start;
    }

    .taxbiz-service__heading > span {
        margin-top: 3px;
    }

    .taxbiz-service__symbol {
        margin-top: 7px;
    }

    .taxbiz-section-label > span {
        display: none;
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

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

    .taxbiz-page *,
    .taxbiz-page *::before,
    .taxbiz-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.taxbiz-service {
    scroll-margin-top: 16px;
}