/* ======================================================
   PHASE 3 — ABOUT / TEAM / CONTACT / MOBILE / FOOTER
   ====================================================== */

/* HEADER REFINEMENT */

.pd-header {
    box-shadow:
        0 1px 0 rgba(14, 57, 28, .06);
}

.pd-header-inner {
    max-width: 1180px;
}

.pd-brand {
    display: flex;
    align-items: center;
}

.pd-brand img {
    width: 62px;
}

.pd-menu > li > a {
    font-weight: 650;
    letter-spacing: -.01em;
}

.pd-menu .sub-menu {
    width: 265px;
    padding: 8px;
    border-radius: 4px;
}

.pd-menu .sub-menu a {
    padding: 12px 14px;
    border-radius: 3px;
}

.pd-menu .sub-menu a:hover {
    background: var(--green-soft);
}


/* ABOUT HERO */

.pd-about-hero {
    padding: 85px 0;
    background:
        linear-gradient(
            125deg,
            #082b14,
            #134420
        );
}

.pd-about-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0,1.1fr)
        minmax(300px,.9fr);
    align-items: center;
    gap: 75px;
}

.pd-about-hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: #fff;
}

.pd-about-hero p {
    max-width: 620px;
    color: rgba(255,255,255,.73);
    font-size: 1.04rem;
}

.pd-about-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.pd-about-hero-image {
    max-width: 420px;
    margin-left: auto;
}

.pd-about-hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    box-shadow:
        24px 24px 0 rgba(198,161,91,.18);
}


/* ABOUT CONTENT */

.pd-about-main {
    padding: 95px 0;
}

.pd-about-main-grid {
    display: grid;
    grid-template-columns:
        .65fr 1.35fr;
    gap: 80px;
}

.pd-about-main-heading {
    position: sticky;
    top: 115px;
    align-self: start;
}

.pd-about-main-heading h2 {
    font-size:
        clamp(2rem,3vw,3rem);
}

.pd-about-content {
    max-width: 760px;
}

.pd-about-content p,
.pd-about-content li {
    line-height: 1.82;
}

.pd-about-content h2 {
    margin-top: 45px;
}

.pd-about-content h3 {
    margin-top: 32px;
}


/* VALUES */

.pd-values {
    padding: 90px 0;
    background: var(--green-pale);
}

.pd-values-grid {
    display: grid;
    grid-template-columns:
        repeat(3,1fr);
    border-left:
        1px solid var(--line);
    border-top:
        1px solid var(--line);
}

.pd-values-grid article {
    min-height: 245px;
    padding: 31px;
    background: #fff;
    border-right:
        1px solid var(--line);
    border-bottom:
        1px solid var(--line);
}

.pd-values-grid article > span {
    display: block;
    margin-bottom: 38px;
    color: var(--green);
    font-size: 1.8rem;
    font-weight: 300;
}

.pd-values-grid h3 {
    margin-bottom: 11px;
}

.pd-values-grid p {
    color: var(--muted);
    font-size: .9rem;
}


/* TEAM */

.pd-team-page {
    padding: 85px 0 100px;
}

.pd-team-content {
    max-width: 1050px;
    margin: 0 auto;
}

.pd-team-content .wp-block-columns {
    gap: 25px;
}

.pd-team-content .wp-block-column {
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--line);
    background: #fff;
}

.pd-team-content img {
    width: 100%;
    object-fit: cover;
    margin-bottom: 20px;
}

.pd-team-content h2,
.pd-team-content h3 {
    margin-bottom: 8px;
}

.pd-team-content p {
    color: var(--muted);
    line-height: 1.7;
}

.pd-team-cta {
    padding: 62px 0;
    background: var(--green);
}

.pd-team-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pd-team-cta h2 {
    margin-bottom: 0;
    color: #fff;
}


/* CONTACT HERO */

.pd-contact-hero {
    padding: 80px 0 70px;
    background:
        linear-gradient(
            125deg,
            var(--green-deep),
            var(--green)
        );
}

.pd-contact-hero h1 {
    margin-bottom: 14px;
    color: #fff;
}

.pd-contact-hero p {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255,255,255,.72);
    font-size: 1.03rem;
}


/* CONTACT */

.pd-contact-page {
    padding: 80px 0 100px;
}

.pd-contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        360px;
    align-items: start;
    gap: 70px;
}

.pd-contact-content {
    min-width: 0;
}

.pd-contact-content > *:first-child {
    margin-top: 0;
}

.pd-contact-content h2 {
    margin-top: 40px;
}

.pd-contact-content p,
.pd-contact-content li {
    line-height: 1.8;
}

.pd-contact-content input,
.pd-contact-content select,
.pd-contact-content textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d8e1da;
    border-radius: 0;
    background: #fff;
}

.pd-contact-content textarea {
    min-height: 140px;
}

.pd-contact-content input:focus,
.pd-contact-content select:focus,
.pd-contact-content textarea:focus {
    outline: 3px solid rgba(25,82,39,.10);
    border-color: var(--green);
}

.pd-contact-content input[type="submit"],
.pd-contact-content button[type="submit"] {
    width: auto;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.pd-contact-info {
    display: grid;
    gap: 14px;
}

.pd-contact-card {
    padding: 24px;
    border: 1px solid var(--line);
    background: #fff;
}

.pd-contact-label {
    display: block;
    margin-bottom: 13px;
    color: var(--green);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.pd-contact-card > a,
.pd-contact-card address {
    color: var(--ink);
    font-size: .95rem;
    font-style: normal;
    line-height: 1.7;
}

.pd-contact-card .pd-small-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--green);
    font-size: .8rem;
    font-weight: 700;
}

.pd-contact-card-green {
    background: var(--green);
    border-color: var(--green);
}

.pd-contact-card-green .pd-contact-label {
    color: #d9ebdd;
}

.pd-contact-card-green h3 {
    color: #fff;
}

.pd-contact-book {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    margin-top: 17px;
    background: #fff;
    color: var(--green-dark) !important;
    font-size: .82rem !important;
    font-weight: 750;
}


/* PREFOOTER */

.pd-prefooter {
    padding: 62px 0;
    background:
        linear-gradient(
            135deg,
            #10411f,
            #195227
        );
}

.pd-prefooter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.pd-prefooter h2 {
    margin-bottom: 7px;
    color: #fff;
}

.pd-prefooter p {
    margin-bottom: 0;
    color: rgba(255,255,255,.7);
}

.pd-prefooter-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}


/* FOOTER REBUILD */

.pd-footer {
    padding-top: 68px;
    background: #07190d;
}

.pd-footer-grid {
    display: grid;
    grid-template-columns:
        1.5fr 1fr 1fr 1fr 1.1fr;
    gap: 42px;
    padding-bottom: 58px;
}

.pd-footer-brand img {
    width: 62px;
    margin-bottom: 17px;
}

.pd-footer-brand h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
}

.pd-footer-brand p {
    max-width: 280px;
    color: rgba(255,255,255,.55);
    font-size: .81rem;
}

.pd-footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-footer-column h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pd-footer-column a,
.pd-footer-column span {
    color: rgba(255,255,255,.61);
    font-size: .81rem;
}

.pd-footer-column a:hover {
    color: #fff;
}

.pd-footer-contact {
    min-width: 0;
}

.pd-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 67px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.pd-footer-bottom span {
    color: rgba(255,255,255,.45);
    font-size: .73rem;
}


/* REMOVE ABANDONED LEGACY SHORTCODE VISUAL GAP */

.pd-tax-content > p:empty,
.pd-standard-content > p:empty,
.pd-about-content > p:empty {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .pd-footer-grid {
        grid-template-columns:
            repeat(3,1fr);
    }

    .pd-about-main-grid {
        gap: 45px;
    }
}


@media (max-width: 900px) {

    .pd-about-hero-grid,
    .pd-about-main-grid,
    .pd-contact-layout {
        grid-template-columns: 1fr;
    }

    .pd-about-main-heading {
        position: static;
    }

    .pd-about-hero-image {
        max-width: 480px;
        margin: 0;
    }

    .pd-values-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .pd-team-cta-inner,
    .pd-prefooter-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .pd-footer-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}


/* MOBILE NAV */

@media (max-width: 850px) {

    .pd-navigation .pd-menu .sub-menu {
        display: none;
        padding: 4px 0 5px 14px;
    }

    .pd-navigation
    .menu-item-has-children.pd-submenu-open
    > .sub-menu {
        display: block;
    }

    .pd-menu > li.menu-item-has-children {
        position: relative;
    }

    .pd-submenu-toggle {
        position: absolute;
        top: 1px;
        right: 0;
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--green);
        font-size: 1rem;
    }

    .pd-menu > li.menu-item-has-children > a {
        padding-right: 48px;
    }
}


@media (max-width: 600px) {

    .pd-about-hero {
        padding: 60px 0;
    }

    .pd-about-hero h1 {
        font-size: 2.7rem;
    }

    .pd-about-hero-actions {
        flex-direction: column;
    }

    .pd-about-main,
    .pd-values,
    .pd-team-page,
    .pd-contact-page {
        padding: 65px 0;
    }

    .pd-values-grid,
    .pd-footer-grid {
        grid-template-columns: 1fr;
    }

    .pd-values-grid article {
        min-height: 210px;
    }

    .pd-prefooter-actions {
        width: 100%;
        flex-direction: column;
    }

    .pd-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 16px 0;
    }
}

/* ======================================================
   FINAL POLISH — 2026
   ====================================================== */

/*
 * Submenu toggle buttons are JS-generated for mobile.
 * They must never appear on desktop.
 */
.pd-submenu-toggle {
    display: none;
}

/* Header refinement */
@media (min-width: 851px) {

    .pd-header-inner {
        min-height: 78px;
    }

    .pd-brand {
        margin-right: 16px;
    }

    .pd-menu {
        gap: 3px;
    }

    .pd-menu > li > a {
        padding-left: 13px;
        padding-right: 13px;
        font-size: .9rem;
    }

    .pd-nav-cta {
        margin-left: 20px;
        padding-left: 19px;
        padding-right: 19px;
    }
}

/* Mobile submenu buttons */
@media (max-width: 850px) {

    .pd-submenu-toggle {
        position: absolute;
        top: 1px;
        right: 0;

        display: grid;
        place-items: center;

        width: 42px;
        height: 42px;

        padding: 0;

        border: 0;
        background: transparent;

        color: var(--green);

        font-size: 1.05rem;
        font-weight: 700;
    }
}

/* Give homepage sections a slightly more premium rhythm */
.tax-services,
.tax-process,
.tax-about,
.secondary-services,
.tax-insights {
    scroll-margin-top: 100px;
}

/* Article cards */
.tax-post {
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.tax-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.tax-post-image {
    position: relative;
}

.tax-post-image img {
    transition: transform .3s ease;
}

.tax-post:hover .tax-post-image img {
    transform: scale(1.025);
}

/* Hide broken-image visual icon while preserving image area */
.tax-post-image img:not([src]),
.tax-post-image img[src=""] {
    display: none;
}

/* Footer proportions */
.pd-footer {
    padding-top: 74px;
}

.pd-footer-grid {
    gap: 48px;
    padding-bottom: 62px;
}

.pd-footer-brand img {
    width: 68px;
}

.pd-footer-brand h2 {
    font-size: 1.28rem;
}

.pd-footer-brand p {
    max-width: 320px;

    font-size: .86rem;
    line-height: 1.7;
}

.pd-footer-column h3 {
    margin-bottom: 14px;

    font-size: .77rem;
}

.pd-footer-column a,
.pd-footer-column span {
    font-size: .84rem;
    line-height: 1.65;
}

.pd-footer-bottom {
    min-height: 72px;
}

/* Keep CTA buttons visually consistent */
.tax-final .pd-button,
.pd-prefooter .pd-button {
    min-width: 150px;
}

/* Desktop content width refinement */
@media (min-width: 1200px) {

    .pd-container {
        width: min(
            1180px,
            calc(100% - 64px)
        );
    }
}

/* Mobile footer */
@media (max-width: 600px) {

    .pd-footer {
        padding-top: 55px;
    }

    .pd-footer-grid {
        gap: 32px;
        padding-bottom: 42px;
    }
}
