/* Brand Shared Hero */
.brand-hero {
    position: relative;
    width: 100vw;
    min-height: 23rem;
    margin-top: -2.5rem;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background:
        radial-gradient(circle at 18% 22%, rgba(127, 196, 255, 0.14), transparent 24%),
        linear-gradient(135deg, #10161d 0%, #1d2730 44%, #2d3741 100%);
    overflow: hidden;
}

.brand-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -6rem 75%;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143, 211, 242, 0.12), transparent 72%);
    pointer-events: none;
}

.brand-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    min-height: 23rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.5rem;
    padding: 2.85rem 0 3rem;
}

.brand-hero__copy {
    display: grid;
    align-content: end;
    gap: 0.55rem;
}

.brand-hero__eyebrow {
    display: inline-block;
    width: fit-content;
    color: #8fd3f2;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-hero__copy h1 {
    margin: 0;
    color: white;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.98;
}

.brand-hero__copy p {
    margin: 0;
    color: rgba(236, 244, 252, 0.82);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.brand-hero__badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


/* Brand Shared Intro */
.brand-intro {
    display: grid;
    gap: 1rem;
}

.brand-intro__heading {
    text-align: center;
}

.brand-intro__heading h2 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.brand-intro__content {
    max-width: 86rem;
    margin: 0 auto;
}

.brand-intro__content p {
    margin: 0;
    color: #28313a;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.65;
}


/* Brand Shared Feature Rows */
.brand-features {
    display: grid;
    gap: 0;
    padding-top: 0.45rem;
}

.brand-feature {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
    gap: 1.6rem;
    padding: 2rem 0;
}

.brand-feature + .brand-feature {
    border-top: 1px solid rgba(47, 57, 69, 0.18);
}

.brand-feature--reverse {
    grid-template-columns: minmax(0, 1fr) 16rem;
}

.brand-feature--reverse .brand-feature__media {
    order: 2;
    justify-self: center;
}

.brand-feature__media {
    margin: 0;
    width: 100%;
    max-width: 14.4rem;
    justify-self: center;
    border-radius: 6px;
    overflow: hidden;
    background: #dce7f1;
    box-shadow: 0 14px 30px rgba(27, 69, 113, 0.08);
}

.brand-feature__media img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-feature__content {
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.brand-feature__content h3 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.45rem, 1.95vw, 2rem);
    line-height: 1.08;
}

.brand-feature__content p {
    margin: 0;
    color: #667382;
    font-size: 1rem;
    line-height: 1.8;
}


/* ABI Brand Page */
.brand-page--abi .brand-intro__content {
    max-width: 88rem;
}

.brand-page--abi .brand-feature__content {
    padding-top: 0.35rem;
}


/* ChemGrout Brand Page */
.brand-page--chemgrout .brand-hero__copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.1rem);
}

.brand-page--chemgrout .brand-hero__copy p {
    font-size: clamp(0.95rem, 1.15vw, 1.04rem);
}

.brand-page--chemgrout .brand-intro__heading h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.3rem);
}

.brand-page--chemgrout .brand-intro__content {
    max-width: 88rem;
}

.brand-page--chemgrout .brand-intro__content p {
    font-size: 1rem;
    line-height: 1.6;
}

.brand-catalog {
    display: grid;
    gap: 0;
    padding-top: 0.45rem;
}

.brand-catalog__group {
    padding: 0.4rem 0 0;
}

.brand-catalog__group--divided {
    margin-top: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(47, 57, 69, 0.18);
}

.brand-catalog__grid {
    display: grid;
    gap: 1.4rem 1.1rem;
}

.brand-catalog__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.brand-catalog-card {
    display: grid;
    justify-items: center;
    gap: 0.95rem;
    padding: 1.1rem 0.85rem 0.85rem;
    border: 1px solid rgba(47, 57, 69, 0.06);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(27, 69, 113, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.brand-catalog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 121, 197, 0.12);
    box-shadow: 0 20px 36px rgba(27, 69, 113, 0.1);
}

.brand-catalog-card__media {
    margin: 0;
    width: 100%;
    max-width: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-catalog-card__media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.brand-catalog-card:hover .brand-catalog-card__media img {
    transform: scale(1.03);
}

.brand-catalog-card__content {
    text-align: center;
}

.brand-catalog-card__content h3 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.2rem, 1.55vw, 1.55rem);
    line-height: 1.16;
}


/* Brand Shared Spec Cards */
.brand-specs {
    padding-top: 0.45rem;
}

.brand-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.brand-spec-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(47, 57, 69, 0.06);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(27, 69, 113, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.brand-spec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 121, 197, 0.14);
    box-shadow: 0 22px 40px rgba(27, 69, 113, 0.12);
}

.brand-spec-card__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, #eef5fb 0%, #dce7f1 100%);
    border-bottom: 1px solid rgba(47, 57, 69, 0.06);
}

.brand-spec-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.brand-spec-card:hover .brand-spec-card__media img {
    transform: scale(1.05);
}

.brand-spec-card__content {
    display: grid;
    gap: 0.55rem;
    padding: 1.15rem 1.15rem 1.25rem;
}

.brand-spec-card__title {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.25rem, 1.6vw, 1.55rem);
    line-height: 1.12;
}

.brand-spec-card__eyebrow {
    margin: 0.1rem 0 0.1rem;
    color: #28313a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-spec-card__stats {
    margin: 0;
    display: grid;
    gap: 0.1rem;
}

.brand-spec-card__stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(47, 57, 69, 0.08);
}

.brand-spec-card__stat:first-child {
    border-top: none;
}

.brand-spec-card__stat dt {
    margin: 0;
    color: #667382;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-spec-card__stat dd {
    margin: 0;
    color: #28313a;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: right;
}


/* Brand Shared Category Groups */
.brand-categories {
    padding-top: 0.45rem;
    display: grid;
    gap: 0;
}

.brand-categories__group {
    display: grid;
    gap: 1.35rem;
    padding: 2.35rem 0;
}

.brand-categories__group + .brand-categories__group {
    border-top: 1px solid rgba(47, 57, 69, 0.18);
}

.brand-categories__heading {
    display: grid;
    gap: 0.55rem;
    max-width: 62rem;
    margin: 0 auto;
    text-align: center;
}

.brand-categories__heading h3 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.4rem, 1.9vw, 1.85rem);
    line-height: 1.15;
}

.brand-categories__heading p {
    margin: 0;
    color: #667382;
    font-size: 0.98rem;
    line-height: 1.7;
}

.brand-categories__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.25rem;
    padding-top: 0.35rem;
}

.brand-categories__featured {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    text-align: center;
}

.brand-categories__featured-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 15rem;
}

.brand-categories__featured-media img {
    max-width: 100%;
    max-height: 18rem;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.brand-categories__group:hover .brand-categories__featured-media img {
    transform: scale(1.04);
}

.brand-categories__featured-title {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-categories__also {
    display: grid;
    align-self: center;
    gap: 0.9rem;
    max-width: 28rem;
}

.brand-categories__also-heading {
    margin: 0;
    color: #28313a;
    font-size: 0.98rem;
    font-weight: 800;
}

.brand-categories__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.brand-categories__list--two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.5rem;
}

.brand-categories__list li {
    color: #28313a;
    font-size: 0.95rem;
    font-weight: 700;
}


/* XCMG Brand Page */
.brand-page--xcmg .brand-hero__copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.1rem);
}

.brand-page--xcmg .brand-hero__copy p {
    font-size: clamp(0.95rem, 1.15vw, 1.04rem);
}

.brand-page--xcmg .brand-intro__heading h2 {
    font-size: clamp(1.8rem, 2.45vw, 2.35rem);
}

.brand-page--xcmg .brand-intro__content p {
    font-size: 1rem;
    line-height: 1.65;
}


/* Delmag Brand Page */
.brand-page--delmag .brand-hero__copy h1 {
    font-size: clamp(2.65rem, 5vw, 4.15rem);
}

.brand-page--delmag .brand-hero__copy p {
    font-size: clamp(0.95rem, 1.15vw, 1.04rem);
}

.brand-page--delmag .brand-intro__heading h2 {
    font-size: clamp(1.8rem, 2.45vw, 2.35rem);
}

.brand-page--delmag .brand-intro__content p {
    font-size: 1rem;
    line-height: 1.62;
}

.brand-page--delmag .brand-feature__content h3 {
    font-size: clamp(1.32rem, 1.7vw, 1.75rem);
}

.brand-page--delmag .brand-feature__content p {
    font-size: 0.97rem;
    line-height: 1.74;
}


/* Brand Responsive */
@media (max-width: 960px) {
    .brand-hero,
    .brand-hero__inner {
        min-height: 20rem;
    }

    .brand-hero__inner {
        grid-template-columns: 1fr;
        align-items: end;
        padding: 2.45rem 0 2.55rem;
    }

    .brand-hero__badge {
        width: 5.25rem;
        height: 5.25rem;
        justify-self: start;
    }

    .brand-feature,
    .brand-feature--reverse {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .brand-feature__media,
    .brand-feature--reverse .brand-feature__media {
        order: 0;
        justify-self: center;
    }

    .brand-catalog__grid--3,
    .brand-catalog__grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-catalog-card {
        padding: 1rem 0.75rem 0.8rem;
    }

    .brand-catalog-card__media {
        max-width: 15rem;
    }

    .brand-specs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .brand-categories__body {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .brand-categories__also {
        justify-self: center;
        text-align: center;
    }

    .brand-categories__list--two-col {
        max-width: 22rem;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .brand-hero {
        min-height: 17.5rem;
        margin-top: -1.5rem;
    }

    .brand-hero__inner {
        width: calc(100% - 1.5rem);
        min-height: 17.5rem;
        gap: 1rem;
        padding: 2.05rem 0 2rem;
    }

    .brand-hero__eyebrow {
        font-size: 0.74rem;
        letter-spacing: 0.14em;
    }

    .brand-hero__copy h1 {
        font-size: clamp(2.45rem, 11vw, 3.45rem);
    }

    .brand-hero__copy p {
        font-size: 0.95rem;
    }

    .brand-hero__badge {
        width: 4.75rem;
        height: 4.75rem;
        border-radius: 14px;
        justify-self: start;
    }

    .brand-intro__heading {
        text-align: left;
    }

    .brand-intro__heading h2 {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
    }

    .brand-intro__content p,
    .brand-feature__content p {
        font-size: 0.97rem;
        line-height: 1.72;
    }

    .brand-feature {
        padding: 1.4rem 0;
    }

    .brand-feature__media {
        max-width: 14.25rem;
        justify-self: center;
    }

    .brand-feature__content h3 {
        font-size: clamp(1.3rem, 6vw, 1.65rem);
    }

    .brand-page--chemgrout .brand-hero__copy h1 {
        font-size: clamp(2.25rem, 10vw, 2.9rem);
    }

    .brand-page--chemgrout .brand-intro__heading h2 {
        font-size: clamp(1.55rem, 6vw, 1.9rem);
    }

    .brand-catalog__group--divided {
        margin-top: 0.55rem;
        padding-top: 1.5rem;
    }

    .brand-catalog__grid--3,
    .brand-catalog__grid--2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-catalog-card {
        padding: 1rem 0.65rem 0.75rem;
        border-radius: 12px;
    }

    .brand-catalog-card__media {
        max-width: 17rem;
        justify-self: center;
    }

    .brand-catalog-card__content h3 {
        font-size: clamp(1.1rem, 5.6vw, 1.35rem);
    }

    .brand-page--delmag .brand-hero__copy h1 {
        font-size: clamp(2.2rem, 10vw, 2.85rem);
    }

    .brand-page--delmag .brand-intro__heading h2 {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
    }

    .brand-page--delmag .brand-feature__content h3 {
        font-size: clamp(1.18rem, 5.6vw, 1.45rem);
    }

    .brand-specs__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-spec-card {
        border-radius: 12px;
    }

    .brand-spec-card__content {
        padding: 1rem 1rem 1.1rem;
    }

    .brand-categories__group {
        padding: 1.85rem 0;
    }

    .brand-categories__heading p {
        font-size: 0.95rem;
    }

    .brand-categories__featured-media {
        min-height: 13rem;
    }

    .brand-categories__featured-media img {
        max-height: 15rem;
    }

    .brand-categories__list--two-col {
        grid-template-columns: 1fr;
        max-width: 18rem;
    }

    .brand-page--xcmg .brand-hero__copy h1 {
        font-size: clamp(2.2rem, 10vw, 2.85rem);
    }

    .brand-page--xcmg .brand-intro__heading h2 {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
    }
}

/* Brand palette alignment */
.brand-hero {
    min-height: 23rem;
    background: #031629;
}

.brand-hero::after {
    display: none;
}

.brand-hero__eyebrow {
    color: #f78b08;
}

.brand-hero__copy h1 {
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.brand-hero__copy p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    letter-spacing: 0;
}

.brand-hero__badge {
    border-radius: 10px;
    background: #ffffff;
}

.brand-intro__heading h2,
.brand-feature__content h3 {
    color: #031629;
    font-size: 2rem;
    line-height: 1.18;
}

.brand-feature__media,
.brand-catalog-card,
.brand-spec-card {
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(3, 22, 41, 0.06);
}

.brand-catalog-card:hover,
.brand-spec-card:hover {
    border-color: rgba(247, 139, 8, 0.3);
}

@media (max-width: 640px) {
    .brand-hero__copy h1,
    .brand-page--chemgrout .brand-hero__copy h1,
    .brand-page--delmag .brand-hero__copy h1,
    .brand-page--xcmg .brand-hero__copy h1 {
        font-size: 2.15rem;
    }

    .brand-intro__heading h2,
    .brand-feature__content h3,
    .brand-page--chemgrout .brand-intro__heading h2,
    .brand-page--delmag .brand-intro__heading h2,
    .brand-page--xcmg .brand-intro__heading h2 {
        font-size: 1.55rem;
    }
}
