/* Repa corporate company pages */
.repa-corp {
    --rc-accent: #b21f27;
    --rc-ink: #15191c;
    --rc-muted: #5f6b75;
    --rc-line: #e4e7eb;
    --rc-paper: #f3f4f6;
    --rc-card: #ffffff;
    --rc-display: "Syne", Oswald, sans-serif;
    --rc-body: "Barlow", WorkSans, sans-serif;
    background: #0a0b0d;
    color: var(--rc-ink);
    font-family: var(--rc-body);
}

/* When Contact hero wraps a light corp sheet, restore ink on content */
.repa-contact.repa-corp {
    overflow: visible;
    color: var(--rc-text, #f3f1ec);
    padding-top: 0 !important;
}

.repa-contact.repa-corp > .repa-contact__hero {
    min-height: clamp(240px, 34vh, 340px);
    padding: 7rem 0 2.5rem;
}

.repa-contact.repa-corp .repa-corp__sheet {
    color: var(--rc-ink);
    background: var(--rc-paper);
}

.repa-corp :is(h1, h2, h3, h4)::before,
.repa-corp :is(h1, h2, h3, h4)::after {
    content: none !important;
    display: none !important;
}

.repa-corp__hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(280px, 42vh, 480px);
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0b0d;
}

.repa-corp__hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(178, 31, 39, 0.38), transparent 55%),
        radial-gradient(ellipse 50% 40% at 88% 72%, rgba(255, 255, 255, 0.05), transparent 50%),
        linear-gradient(165deg, #101217 0%, #070809 55%, #0d1014 100%);
}

.repa-corp__grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 40% 35%, #000 15%, transparent 75%);
}

.repa-corp__glow {
    position: absolute;
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    right: -6%;
    top: -20%;
    border: 1px solid rgba(178, 31, 39, 0.32);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.repa-corp__glow::before {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.repa-corp__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    top: 42%;
    background: linear-gradient(90deg, transparent, rgba(178, 31, 39, 0.85), transparent);
    opacity: 0.5;
}

.repa-corp__hero-inner {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto;
}

/* Contact-style eyebrow: red rule + label (title only) */
.repa-corp__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    font-family: var(--rc-body);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rc-accent);
    font-weight: 600;
    line-height: 1.2;
}

.repa-corp__eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--rc-accent);
    flex: 0 0 auto;
}

.repa-corp__title {
    margin: 0;
    max-width: 18ch;
    font-family: var(--rc-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: #fff;
    text-transform: none;
}

.repa-corp__lead {
    margin: 0.75rem 0 0;
    max-width: 38rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(243, 241, 236, 0.62);
}

.repa-corp__sheet {
    background: var(--rc-paper);
    padding: 1.75rem 0 4rem;
}

.repa-corp__shell {
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.repa-corp__intro {
    margin: 0 0 1.35rem;
    max-width: 62ch;
    font-size: 1.02rem;
    line-height: 1.6;
    color: #3a4450;
}

/* Certificate grid */
.repa-corp__certs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.repa-corp__cert {
    background: var(--rc-card);
    border: 1px solid var(--rc-line);
    border-left: 3px solid rgba(178, 31, 39, 0.55);
    padding: 0.9rem;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.repa-corp__cert:hover {
    border-color: rgba(178, 31, 39, 0.45);
    transform: translateY(-2px);
}

.repa-corp__cert-shot {
    display: block;
    aspect-ratio: 3 / 4;
    background: #f7f8fa;
    border: 1px solid #eef0f3;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.repa-corp__cert-shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.65rem;
}

.repa-corp__cert strong {
    display: block;
    font-family: var(--rc-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rc-ink);
}

.repa-corp__cert span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--rc-muted);
}

/* Machinery — legacy kept for safety */
.repa-corp__machines {
    display: none;
}

/* Machinery Park — premium gallery */
.rc-park__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.rc-park__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rc-accent);
    font-weight: 600;
}

.rc-park__intro {
    margin: 0;
    max-width: 46rem;
}

.rc-park__count {
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

.rc-park__count strong {
    display: block;
    font-family: var(--rc-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1;
    color: var(--rc-ink);
    font-weight: 800;
}

.rc-park__count span {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rc-muted);
}

.rc-park__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.35rem;
}

.rc-park__filters button {
    appearance: none;
    border: 1px solid var(--rc-line);
    background: #fff;
    color: #3a4450;
    font-family: var(--rc-body);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rc-park__filters button em {
    font-style: normal;
    margin-left: 0.35rem;
    opacity: 0.55;
}

.rc-park__filters button:hover {
    border-color: rgba(178, 31, 39, 0.45);
    color: var(--rc-ink);
}

.rc-park__filters button.is-active {
    background: var(--rc-ink);
    border-color: var(--rc-ink);
    color: #fff;
}

.rc-park__filters button.is-active em {
    opacity: 0.7;
}

.rc-park__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.85rem;
}

.rc-park__card {
    grid-column: span 4;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    background: #0d1014;
    color: #fff;
    text-decoration: none !important;
    overflow: hidden;
    border: 1px solid #1a1f26;
    isolation: isolate;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.rc-park__card--feature {
    grid-column: span 8;
    min-height: 420px;
}

.rc-park__card.is-hidden {
    display: none;
}

.rc-park__shot {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rc-park__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s ease;
}

.rc-park__shot-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 10, 12, 0.15) 0%, rgba(8, 10, 12, 0.25) 40%, rgba(8, 10, 12, 0.92) 100%),
        linear-gradient(90deg, rgba(178, 31, 39, 0.18), transparent 42%);
}

.rc-park__meta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 1.15rem 1.15rem 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.rc-park__cat {
    justify-self: start;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f0a0a4;
    font-weight: 600;
}

.rc-park__num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-family: var(--rc-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
}

.rc-park__meta h2 {
    margin: 0;
    font-family: var(--rc-display);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    text-transform: none;
    max-width: 22ch;
}

.rc-park__card--feature .rc-park__meta h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    max-width: 28ch;
}

.rc-park__specs {
    margin: 0.15rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.2rem;
    opacity: 0.82;
}

.rc-park__specs li {
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    padding-left: 0.75rem;
    position: relative;
}

.rc-park__specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 4px;
    height: 4px;
    background: var(--rc-accent);
}

.rc-park__more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.rc-park__more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.rc-park__card:hover {
    border-color: rgba(178, 31, 39, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}

.rc-park__card:hover .rc-park__shot img {
    transform: scale(1.08);
}

.rc-park__card:hover .rc-park__more svg {
    transform: translateX(4px);
}

/* Machine detail */
.repa-md__hero .repa-corp__title {
    max-width: 18ch;
}

.repa-md__back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.repa-md__back svg {
    width: 18px;
    height: 18px;
}

.repa-md__back:hover {
    color: #fff !important;
}

.repa-md__index {
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.repa-md__shell {
    padding-top: 1.5rem;
}

.repa-md__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    align-items: stretch;
}

.repa-md__gallery {
    position: relative;
    min-height: min(62vh, 560px);
    background: #0d1014;
    border: 1px solid #1a1f26;
    overflow: hidden;
}

.repa-md__shot {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.repa-md__shot.is-active {
    opacity: 1;
    pointer-events: auto;
}

.repa-md__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.repa-md__shot--logo {
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 55% 50% at 50% 45%, rgba(178, 31, 39, 0.2), transparent 70%),
        #101317;
}

.repa-md__shot--logo img {
    width: min(42%, 220px);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.repa-md__gallery-veil {
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 12, 0.55));
    pointer-events: none;
}

.repa-md__gallery-ui {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.repa-md__nav {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(10, 11, 13, 0.55);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.repa-md__nav:hover {
    border-color: rgba(178, 31, 39, 0.7);
    background: rgba(178, 31, 39, 0.35);
}

.repa-md__dots {
    display: flex;
    gap: 0.4rem;
}

.repa-md__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.repa-md__dots button.is-active {
    background: var(--rc-accent);
    transform: scale(1.15);
}

.repa-md__aside {
    background: #fff;
    border: 1px solid var(--rc-line);
    border-left: 3px solid rgba(178, 31, 39, 0.65);
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.repa-md__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rc-accent);
    font-weight: 600;
}

.repa-md__h2 {
    margin: 0 0 1rem;
    font-family: var(--rc-display);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
    color: var(--rc-ink);
    font-weight: 750;
    text-transform: none;
}

.repa-md__specs {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.repa-md__specs > div {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef0f3;
}

.repa-md__specs dt {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rc-muted);
}

.repa-md__specs dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--rc-ink);
    font-weight: 550;
}

.repa-md__cta {
    margin-top: auto;
    padding-top: 1.25rem;
    display: grid;
    gap: 0.55rem;
}

.repa-md__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 650;
    text-decoration: none !important;
}

.repa-md__btn svg {
    width: 16px;
    height: 16px;
}

.repa-md__btn--primary {
    background: var(--rc-accent);
    color: #fff !important;
    border: 1px solid var(--rc-accent);
}

.repa-md__btn--primary:hover {
    background: #96191f;
    border-color: #96191f;
}

.repa-md__btn--ghost {
    background: transparent;
    color: var(--rc-ink) !important;
    border: 1px solid var(--rc-line);
}

.repa-md__btn--ghost:hover {
    border-color: rgba(178, 31, 39, 0.45);
}

.repa-md__related {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rc-line);
}

.repa-md__related-head {
    margin-bottom: 1rem;
}

.repa-md__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.repa-md__related-card {
    display: grid;
    grid-template-rows: 160px auto;
    background: #fff;
    border: 1px solid var(--rc-line);
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.repa-md__related-card:hover {
    border-color: rgba(178, 31, 39, 0.45);
    transform: translateY(-2px);
}

.repa-md__related-shot {
    background: #111418;
    overflow: hidden;
}

.repa-md__related-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.repa-md__related-card:hover .repa-md__related-shot img {
    transform: scale(1.05);
}

.repa-md__related-meta {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem 1rem;
}

.repa-md__related-meta em {
    font-style: normal;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rc-accent);
    font-weight: 600;
}

.repa-md__related-meta strong {
    font-family: var(--rc-display);
    font-size: 0.95rem;
    line-height: 1.25;
    color: var(--rc-ink);
    font-weight: 700;
}

@media (max-width: 900px) {
    .repa-corp__certs,
    .repa-corp__areas,
    .repa-corp__media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .repa-corp__refs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .repa-corp__gallery {
        grid-template-columns: 1fr;
    }

    .rc-park__card,
    .rc-park__card--feature {
        grid-column: span 6;
        min-height: 300px;
    }

    .rc-park__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .rc-park__count {
        text-align: left;
    }

    .repa-md__layout {
        grid-template-columns: 1fr;
    }

    .repa-md__gallery {
        min-height: 48vh;
    }

    .repa-md__related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .repa-corp__certs,
    .repa-corp__areas,
    .repa-corp__media,
    .repa-corp__refs {
        grid-template-columns: 1fr;
    }

    .repa-corp__hero,
    .repa-contact.repa-corp > .repa-contact__hero {
        min-height: 0;
        padding: 6.5rem 0 2.25rem;
    }

    .repa-corp__title {
        max-width: none;
        font-size: 1.55rem;
    }

    .rc-park__card,
    .rc-park__card--feature {
        grid-column: span 12;
        min-height: 280px;
    }

    .rc-park__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .rc-park__filters button {
        flex: 0 0 auto;
    }
}

.repa-corp__areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.repa-corp__area {
    background: var(--rc-card);
    border: 1px solid var(--rc-line);
    border-left: 3px solid rgba(178, 31, 39, 0.55);
    padding: 1rem 1.05rem 1.1rem;
}

.repa-corp__area-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.45rem;
    margin-bottom: 0.55rem;
    border: 1px solid rgba(178, 31, 39, 0.4);
    background: rgba(178, 31, 39, 0.07);
    color: var(--rc-accent);
    font-family: var(--rc-display);
    font-size: 0.68rem;
    font-weight: 700;
}

.repa-corp__area h2 {
    margin: 0 0 0.4rem;
    font-family: var(--rc-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rc-ink);
    text-transform: none;
}

.repa-corp__area p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #3a4450;
}

.repa-corp__gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0.65rem;
}

.repa-corp__gallery figure {
    margin: 0;
    background: #111418;
    border: 1px solid var(--rc-line);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.repa-corp__gallery figure:first-child {
    aspect-ratio: auto;
    min-height: 100%;
}

.repa-corp__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* References */
.repa-corp__refs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.repa-corp__ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 8.5rem;
    padding: 1rem 0.75rem;
    background: var(--rc-card);
    border: 1px solid var(--rc-line);
    text-align: center;
}

.repa-corp__ref img {
    max-width: 78%;
    max-height: 3.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.repa-corp__ref:hover img {
    filter: none;
    opacity: 1;
}

.repa-corp__ref span {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--rc-muted);
    line-height: 1.3;
}

/* Media */
.repa-corp__media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.repa-corp__media-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-line);
    border-left: 3px solid rgba(178, 31, 39, 0.55);
    padding: 1.15rem 1.2rem 1.25rem;
}

.repa-corp__media-card h2 {
    margin: 0 0 0.45rem;
    font-family: var(--rc-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rc-ink);
    text-transform: none;
}

.repa-corp__media-card p {
    margin: 0 0 0.9rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #3a4450;
}

.repa-corp__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: var(--rc-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.repa-corp__cta:hover {
    filter: brightness(1.05);
}

.repa-corp__cta--ghost {
    background: transparent;
    border: 1px solid var(--rc-line);
    color: var(--rc-ink) !important;
}
