/*
 * About & Contact, Consultation and pre-built category headers (DGB brand).
 * Builds on home-brand.css: pages wrap their content in .hb.pb so the shared
 * .hb-* components (titles, buttons, cards, FAQ, reviews) apply.
 */

.pb .hb-section:first-child {
    padding-top: 24px;
}

/* ---------- Page hero (navy card) ---------- */
.pb-hero {
    align-items: stretch;
    background: linear-gradient(180deg, var(--hb-navy) 0%, var(--hb-navy-soft) 100%);
    border-radius: 24px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    min-height: 420px;
    overflow: hidden;
}

.pb-hero-copy {
    display: flex;
    flex: 1 1 460px;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    padding: 48px 24px 44px clamp(28px, 5vw, 64px);
}

.pb-hero-copy .hb-eyebrow {
    color: var(--hb-gold);
}

.pb-hero-title {
    color: #ffffff;
    font-family: var(--hb-heading);
    font-size: clamp(32px, 3.6vw, 50px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    max-width: 620px;
}

.pb-hero-title span {
    color: var(--hb-gold);
}

.pb-hero-text {
    color: var(--hb-on-navy);
    font-size: 17px;
    line-height: 1.65;
    max-width: 540px;
}

.pb-hero-media {
    flex: 1 1 440px;
    min-height: 300px;
    position: relative;
}

.pb-hero-media img {
    height: 100%;
    inset: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    max-width: none;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

/* The story artwork is purple; shift it toward Oxford Blue */
.pb-hero-media img.pb-shift {
    filter: hue-rotate(-62deg) saturate(0.75);
}

/* ---------- Stat strip ---------- */
.pb-stats {
    border: 1px solid var(--hb-line);
    border-radius: 18px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 24px !important;
    padding: 20px 8px !important;
}

.pb-stats > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 4px 20px;
}

.pb-stats dt {
    color: var(--hb-muted);
    font-size: 14px;
    font-weight: 400;
}

.pb-stats dd {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 30px;
    font-weight: 700;
}

/* ---------- Two-column story / promise ---------- */
.pb-split {
    align-items: start;
    display: grid;
    gap: 40px 64px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pb-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pb-copy > p:not(.hb-eyebrow) {
    color: var(--hb-text);
    font-size: 16.5px;
    line-height: 1.7;
}

.pb-features {
    display: grid;
    gap: 14px;
}

.pb-feature {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.pb-feature strong {
    color: var(--hb-navy);
    display: block;
    font-family: var(--hb-heading);
    font-size: 16px;
    font-weight: 600;
}

.pb-feature p {
    color: var(--hb-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.pb-panel {
    background: var(--hb-paper);
    border: 1px solid var(--hb-line);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 3vw, 36px);
}

.pb-panel h3 {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.pb-panel h3 span {
    color: var(--hb-red);
}

.pb-quote {
    border-left: 3px solid var(--hb-gold);
    color: var(--hb-muted);
    font-size: 15px;
    font-style: italic;
    padding-left: 12px;
}

.pb-mini-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-mini {
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

.pb-mini strong {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 15px;
    font-weight: 600;
}

.pb-mini span {
    color: var(--hb-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ---------- Icon cards (what we do, values, why us) ---------- */
.pb-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pb-card {
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pb-card:hover {
    border-color: #d9cfcf;
    box-shadow: 0 18px 40px rgba(0, 35, 76, 0.1);
    transform: translateY(-3px);
}

.pb-card h3 {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 19px;
    font-weight: 600;
}

.pb-card p {
    color: var(--hb-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pb-card-no {
    color: var(--hb-wolf);
    font-family: var(--hb-heading);
    font-size: 34px;
    font-weight: 700;
    position: absolute;
    right: 22px;
    top: 16px;
}

/* ---------- Process steps ---------- */
.pb-process {
    counter-reset: none;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pb-step {
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.pb-step-no {
    align-items: center;
    background: var(--hb-navy);
    border-radius: 10px;
    color: var(--hb-gold);
    display: inline-flex;
    font-family: var(--hb-heading);
    font-size: 14px;
    font-weight: 600;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.pb-step h3 {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.pb-step p,
.pb-step li {
    color: var(--hb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.pb-step ul {
    display: grid;
    gap: 4px;
    list-style: disc !important;
    padding-left: 18px !important;
}

/* ---------- Team ---------- */
.pb-team {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-member {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 20px;
    display: flex;
    gap: 16px;
    padding: 20px;
}

.pb-member img {
    border-radius: 14px;
    flex: none;
    height: 92px;
    object-fit: cover;
    object-position: top;
    width: 80px;
}

.pb-member-role {
    color: var(--hb-red);
    font-family: var(--hb-heading);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pb-member h3 {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 2px 0;
}

.pb-member-title {
    color: var(--hb-navy);
    font-size: 14px;
    font-weight: 500;
}

.pb-member p {
    color: var(--hb-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 6px;
}

/* ---------- Contact ---------- */
.pb-contact {
    align-items: start;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.pb-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pb-contact-item {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 16px;
    display: flex;
    gap: 14px;
    padding: 18px;
}

.pb-contact-item strong {
    color: var(--hb-navy);
    display: block;
    font-family: var(--hb-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pb-contact-item span,
.pb-contact-item a {
    color: var(--hb-text);
    font-size: 15px;
    line-height: 1.55;
}

.pb-contact-item a:hover {
    color: var(--hb-red);
}

.pb-form-card {
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 35, 76, 0.08);
    padding: clamp(22px, 3vw, 34px);
}

.pb-form-card h3 {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pb-form-card > p {
    color: var(--hb-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.pb-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-field-wide {
    grid-column: 1 / -1;
}

.pb-field label {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 13.5px;
    font-weight: 500;
}

.pb-field input,
.pb-field textarea {
    background: var(--hb-paper);
    border: 1px solid var(--hb-wolf);
    border-radius: 12px;
    color: var(--hb-navy);
    font: inherit;
    font-size: 15px;
    min-height: 48px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

.pb-field textarea {
    min-height: 110px;
    resize: vertical;
}

.pb-field input:focus,
.pb-field textarea:focus {
    background: #ffffff;
    border-color: var(--hb-navy);
    box-shadow: 0 0 0 3px rgba(0, 35, 76, 0.08);
    outline: none;
}

.pb-field .error-message {
    font-size: 13px;
}

.pb-form-foot {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    margin-top: 20px;
}

.pb-form-foot small {
    color: var(--hb-muted);
    font-size: 13px;
}

/* ---------- Consultation booking ---------- */
.pb-book {
    align-items: start;
    display: grid;
    gap: 24px 32px;
    grid-template-areas:
        "copy calendar"
        "steps calendar";
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
}

.pb-book > .pb-book-copy {
    grid-area: copy;
}

.pb-book > .pb-calendar {
    grid-area: calendar;
}

.pb-book > .pb-book-steps {
    align-self: start;
    grid-area: steps;
}

.pb-book-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 12px;
}

.pb-book-copy .pb-hero-title {
    color: var(--hb-navy);
}

.pb-book-copy .pb-hero-title span {
    color: var(--hb-red);
}

.pb-book-copy > p:not(.hb-eyebrow) {
    color: var(--hb-text);
    font-size: 17px;
    line-height: 1.65;
}

.pb-trust {
    align-items: center;
    color: var(--hb-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14.5px;
    gap: 8px 12px;
}

.pb-trust strong {
    color: var(--hb-navy);
}

.pb-calendar {
    background: #ffffff;
    border: 1px solid var(--hb-line);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 35, 76, 0.1);
    min-height: 700px;
    overflow: hidden;
    position: relative;
}

.pb-calendar-loader {
    align-items: center;
    background: #ffffff;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 5;
}

.pb-calendar-loader span {
    animation: pb-spin 1s linear infinite;
    border: 4px solid var(--hb-line);
    border-radius: 50%;
    border-top-color: var(--hb-navy);
    height: 46px;
    width: 46px;
}

@keyframes pb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Pre-built category header ---------- */
.pb-cat-wrap.hb {
    background: transparent;
    padding-bottom: 0;
}

.pb-cat-head {
    background: var(--hb-paper);
    border-bottom: 1px solid var(--hb-line);
    padding: 28px 0 24px;
}

.pb-crumbs {
    align-items: center;
    color: var(--hb-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13.5px;
    gap: 6px;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.pb-crumbs a {
    color: var(--hb-muted);
}

.pb-crumbs a:hover {
    color: var(--hb-red);
}

.pb-cat-row {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    justify-content: space-between;
}

.pb-cat-title {
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0;
}

.pb-cat-count {
    color: var(--hb-muted);
    font-size: 15px;
    margin-top: 4px;
}

.pb-cat-intro {
    color: var(--hb-text);
    font-size: 15px;
    line-height: 1.65;
    margin-top: 12px;
    max-width: 880px;
}

.pb-cat-intro p {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    margin: 0;
    overflow: hidden;
}

.pb-cat-intro.is-open p {
    display: block;
}

.pb-cat-more {
    background: none;
    border: 0;
    color: var(--hb-navy);
    cursor: pointer;
    font-family: var(--hb-heading);
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
    padding: 0;
}

.pb-cat-more:hover {
    color: var(--hb-red);
}

.pb-series {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pb-series a {
    background: #ffffff;
    border: 1px solid var(--hb-wolf);
    border-radius: 999px;
    color: var(--hb-navy);
    font-family: var(--hb-heading);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
}

.pb-series a:hover {
    border-color: var(--hb-navy);
    color: var(--hb-navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
    .pb-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .pb-book {
        grid-template-areas:
            "copy"
            "calendar"
            "steps";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 767px) {
    .pb-split,
    .pb-contact,
    .pb-team,
    .pb-process,
    .pb-form-grid,
    .pb-mini-grid {
        grid-template-columns: 1fr;
    }

    .pb-hero-copy {
        padding: 34px 22px 28px;
    }

    .pb-hero-media {
        min-height: 220px;
    }

    .pb-hero-media img {
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
        mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    }

    .pb-stats dd {
        font-size: 26px;
    }

    .pb-calendar {
        min-height: 760px;
    }

    .pb-cat-head {
        padding: 20px 0 18px;
    }
}
