/* Shared marketing layout patterns - homepage reference + inner pages */

/* -- Page shell (inner routes) -- */
.arpm-page {
    padding-block: clamp(3rem, 12vw, var(--space-section-gap));
    overflow-x: clip;
    max-width: 100%;
}

.arpm-page__stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-block-gap);
}

.arpm-page__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-block-gap);
    max-width: 100%;
}

.arpm-page__subtitle {
    margin: 0;
    max-width: 42rem;
}

.arpm-page__body {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.arpm-page__body > :first-child {
    margin-top: 0;
}

/* -- Section rhythm -- */
.arpm-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-block-gap);
}

.arpm-section--loose {
    gap: var(--space-sectors-label-gap);
}

/* -- Columns -- */
.arpm-headline-col,
.arpm-headline-col.arpm-serif-title {
    max-width: var(--width-serif-column);
}

.arpm-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.arpm-split-grid__start {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 5.625rem);
    max-width: var(--width-serif-column);
}

.arpm-title-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    align-items: end;
}

.arpm-title-row .arpm-headline-col {
    grid-column: 1;
}

.arpm-title-row__action {
    grid-column: 2;
    justify-self: end;
    align-self: end;
}

/* -- Media -- */
.arpm-media-frame {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e8e8e8;
}

.arpm-media-frame img,
.arpm-media-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -- Full-width band when parent is already viewport-wide (e.g. home network marquee) -- */
.arpm-viewport-bleed {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
}

/*
 * Break out of a centered .arpm-container to the layout width (not 100vw - avoids
 * horizontal scroll when a vertical scrollbar is present). Parent must be the
 * padded column; use .arpm-viewport-bleed when the parent is already full width.
 */
.arpm-container-bleed {
    position: relative;
    width: calc(100% + 2 * var(--space-page-x));
    max-width: none;
    margin-inline: calc(-1 * var(--space-page-x));
    box-sizing: border-box;
}

/* -- Closing CTA band -- */
.arpm-cta-band {
    position: relative;
    padding-block: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}

.arpm-cta-band__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 52rem;
}

.arpm-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.arpm-cta-band__decor {
    position: absolute;
    top: 0;
    right: max(var(--space-page-x), 1.25rem);
    width: clamp(5rem, 8.1vw, 13.986rem);
    height: var(--home-vision-decor-height, 3.6875rem);
    pointer-events: none;
}

/* -- Accent dots (sector tags, inline lists) -- */
.arpm-accent-dot {
    display: inline-block;
    flex-shrink: 0;
    width: var(--accent-dot-width);
    height: var(--accent-dot-height);
    border-radius: 999px;
}

.arpm-accent-dot--green {
    background: var(--accent-green);
}

.arpm-accent-dot--blue {
    background: var(--accent-blue);
}

.arpm-accent-dot--orange {
    background: var(--accent-orange);
}

.arpm-sector-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: clamp(0.75rem, 2vw, 1.25rem);
    row-gap: clamp(0.75rem, 2vw, 1rem);
}

.arpm-sector-tags__label,
.home-sector-tags__label {
    font-family: var(--font-sans);
    font-size: var(--text-section-label);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-ui);
    color: var(--color-section-label);
}

/* -- Responsive -- */
@media (max-width: 1100px) {
    .arpm-split-grid {
        grid-template-columns: 1fr;
    }

    .arpm-split-grid__start,
    .arpm-headline-col {
        max-width: none;
    }

    .arpm-title-row {
        grid-template-columns: 1fr;
    }

    .arpm-title-row__action {
        grid-column: 1;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .arpm-page {
        padding-block: clamp(3rem, 10vw, 5rem);
    }
}
