/* CMS-managed imagery; preserve the V2 layout and responsive rules. */
.home-hero {
    background-image: var(--v2-hero);
}
.page-banner {
    background-image: var(--v2-banner);
}
.team-band:after {
    background-image: var(--v2-team);
}
.about-film {
    background-image: var(--v2-film);
}
.message-scene {
    background-image: var(--v2-contact);
}
/* Match the reference's five 220 x 132 partner images without fading or cropping. */
.home-about .client-strip,
.about-profile .client-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    height: auto;
    align-items: center;
}
.client-strip img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 5/3;
    object-fit: contain;
    justify-self: center;
    filter: none;
    opacity: 1;
}
@media (max-width: 1200px) {
    .home-about .client-strip,
    .about-profile .client-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }
    .about-profile {
        height: auto;
        min-height: 1750px;
    }
    .about-profile-inner {
        height: auto;
        padding-top: 1337px;
        padding-bottom: 68px;
    }
    .about-profile .client-strip {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
    }
}
.message-panel .lele-feedback {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    color: inherit;
}
.message-panel .lele-feedback-head {
    display: none;
}
.message-panel .lele-feedback-fields {
    display: block;
}
.message-panel .lele-feedback-field {
    margin: 0;
}
.message-panel .lele-feedback-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.message-panel .lele-feedback input,
.message-panel .lele-feedback textarea {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: white;
    box-shadow: none;
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    color: #222;
}
.message-panel .lele-feedback textarea {
    height: 100px;
    min-height: 100px;
    resize: vertical;
}
.message-panel .lele-feedback-captcha {
    margin-top: 12px;
}
.message-panel .lele-feedback-captcha > label {
    display: none;
}
.message-panel .lele-feedback-captcha > div {
    display: flex;
    gap: 16px;
    align-items: center;
}
.message-panel .lele-feedback-captcha-image {
    background: #f3f3f3;
    padding: 0;
    flex-shrink: 0;
}
.message-panel .lele-feedback-captcha-image img {
    width: 120px;
    height: 44px;
    object-fit: contain;
}
.message-panel .lele-feedback-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
.message-panel .lele-feedback-submit {
    border: 0;
    border-radius: 0;
    background: #222;
    color: white;
    min-width: 100px;
    padding: 10px 24px;
}
.message-panel .lele-feedback-honeypot {
    display: none !important;
}
.message-panel .lele-feedback-status {
    font-size: 14px;
}
.case-detail > p:last-child,
.credential-detail > p:last-child {
    margin-top: 30px;
}
.case-detail img {
    max-width: 100%;
    height: auto;
}
/* Honor certificates grow with the CMS list instead of a fixed three-card layout. */
.about-values {
    height: auto;
    padding-bottom: 90px;
}
.certificate-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 40px 30px;
    margin-top: 70px;
}
.certificate-card,
.certificate-card:nth-child(2) {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
}
.certificate-card + .certificate-card {
    margin-top: 0;
}
.certificate-card > img,
.certificate-card:nth-child(2) > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: contain;
    background: #fff;
}
.certificate-card h3 {
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.5;
}
.certificate-card p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 1200px) {
    .certificate-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .about-values {
        padding-bottom: 60px;
    }
    .certificate-cards {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 45px;
    }
    .certificate-card h3 {
        font-size: 18px;
    }
}
.case-detail-cover {
    margin: 36px auto 0;
    max-width: 900px;
    text-align: center;
}
.case-detail-cover img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 680px;
    object-fit: contain;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .case-detail-cover {
        margin-top: 24px;
    }
}
/* Shared case-card titles on the home and case-list pages. */
.project-card {
    height: auto;
}
.project-card h3 {
    height: auto;
    min-height: 50px;
    padding: 10px 8px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
    overflow-wrap: anywhere;
}
@media (max-width: 767px) {
    .project-card h3 {
        font-size: 18px;
    }
}
.footer-bottom > p {
    line-height: 1.6;
}
.footer-bottom-bar {
    border-top: 1px solid #eee;
    margin-top: 45px;
}
.site-footer {
    min-height: 0;
}
.footer-bottom {
    border-top: 0;
    margin-top: 0;
    min-height: 64px;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.footer-bottom > p,
.footer-bottom .footer-nav {
    margin: 0;
}
@media (max-width: 1200px) {
    .footer-bottom-bar {
        margin-top: 35px;
    }
}
@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
}
@media (max-width: 767px) {
    .message-panel .lele-feedback-actions {
        flex-wrap: wrap;
    }
    .message-panel .lele-feedback textarea {
        height: 90px;
        min-height: 90px;
    }
}

/* Keep the profile phone prominent and aligned with its contact button. */
.profile-contact > a[href^='tel:'] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 1.4;
    white-space: nowrap;
}
.profile-contact > a[href^='tel:'] i {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
/* Fire-red theme requested by client, 2026-10-30. */
:root {
    --fire-red: #b91c22;
    --fire-red-hover: #99151b;
}
.dark {
    background-color: var(--fire-red);
    color: #fff;
}
.dark .service-row {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}
.dark .service-row:hover {
    background: rgba(255, 255, 255, 0.07);
}
.dark .service-row > p {
    color: #fff0ec;
}
.dark .service-heading > i {
    color: #ffe2d8;
}
.dark .service-cta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.solid-button,
.message-panel .lele-feedback-submit {
    background: var(--fire-red);
    color: #fff;
}
.solid-button:hover,
.message-panel .lele-feedback-submit:hover {
    background: var(--fire-red-hover);
    color: #fff;
}
.team-band {
    background-color: var(--fire-red);
    color: #fff;
}
.team-band:before {
    background: rgba(161, 17, 24, 0.88);
}
.team-badges p {
    color: #ffe2d8;
}
.team-badges > div:after {
    background: rgba(255, 255, 255, 0.3);
}

/* Fire-red icons and statistic accents, 2026-10-30. */
.footer-icons a,
.round-year,
.hero-link > span,
.menu-button,
.film-play {
    background: var(--fire-red);
    color: #fff;
}
.footer-icons a:hover,
.hero-link:hover > span,
.film-play:hover,
.menu-button:hover {
    background: var(--fire-red-hover);
    color: #fff;
}
.hero-link > span:hover {
    color: var(--fire-red);
}
.home-facts i,
.home-facts b,
.process-front > i,
.contact-info > i,
.profile-contact > a[href^='tel:'] i,
.trust-arrow,
.photo-stat strong,
.strength-item strong,
.strength-item b {
    color: var(--fire-red);
}
.process-back {
    background: var(--fire-red);
    color: #fff;
}
.trust-dots button {
    background: rgba(185, 28, 34, 0.25);
}
.trust-dots button.active {
    background: var(--fire-red);
}

/* Keep the CMS field's line breaks without changing the page's wrapping rules. */
@supports (white-space-collapse: preserve-breaks) {
    .preserve-line-breaks {
        white-space-collapse: preserve-breaks !important;
    }
}

@supports not (white-space-collapse: preserve-breaks) {
    .preserve-line-breaks {
        white-space: pre-line;
    }
}
