/* Repa Contact — original defence-industrial surface (not Repa clone) */
.repa-contact {
    --rc-bg: #0a0b0d;
    --rc-surface: #121418;
    --rc-line: rgba(255, 255, 255, 0.1);
    --rc-muted: rgba(255, 255, 255, 0.55);
    --rc-text: #f3f1ec;
    --rc-accent: #b21f27;
    --rc-accent-soft: rgba(178, 31, 39, 0.35);
    --rc-display: "Syne", Oswald, sans-serif;
    --rc-body: "Barlow", WorkSans, sans-serif;
    position: relative;
    color: var(--rc-text);
    background: var(--rc-bg);
    font-family: var(--rc-body);
    overflow: hidden;
}

/* Theme (kruh) paints a red line under every h2 — kill it here */
.repa-contact :is(h1, h2, h3)::before,
.repa-contact :is(h1, h2, h3)::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.repa-contact__hero {
    position: relative;
    min-height: clamp(320px, 58vh, 620px);
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 4.5rem;
    border-bottom: 1px solid var(--rc-line);
}

.repa-contact__hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, var(--rc-accent-soft), transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 70%, rgba(255, 255, 255, 0.05), transparent 50%),
        linear-gradient(165deg, #101217 0%, #070809 55%, #0d1014 100%);
}

.repa-contact__grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    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 50% 40%, #000 20%, transparent 75%);
}

.repa-contact__glow {
    position: absolute;
    width: 42vw;
    height: 42vw;
    max-width: 520px;
    max-height: 520px;
    right: -8%;
    top: 10%;
    border: 1px solid rgba(178, 31, 39, 0.35);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: rc-orbit 18s linear infinite;
}

.repa-contact__glow::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.repa-contact__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    top: 35%;
    background: linear-gradient(90deg, transparent, var(--rc-accent), transparent);
    opacity: 0.55;
    animation: rc-scan 7s ease-in-out infinite;
}

.repa-contact__hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.repa-contact__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rc-accent);
    font-weight: 600;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.repa-contact__eyebrow::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--rc-accent);
}

.repa-contact__eyebrow a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.repa-contact__eyebrow a:hover {
    color: #fff !important;
}

.repa-contact__eyebrow > span[aria-hidden] {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9em;
    letter-spacing: 0;
}

.repa-contact__title {
    margin: 0;
    max-width: 16ch;
    font-family: var(--rc-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6.2vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: none;
}

.repa-contact__title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s ease 0.12s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.repa-contact__sub {
    margin: 1.5rem 0 0;
    max-width: 36rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.55;
    color: var(--rc-muted);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.28s, transform 0.8s ease 0.28s;
}

.repa-contact__mark {
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    font-family: var(--rc-display);
    font-weight: 800;
    font-size: clamp(4rem, 14vw, 11rem);
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.1s ease 0.2s, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.repa-contact.is-ready .repa-contact__eyebrow,
.repa-contact.is-ready .repa-contact__title-line,
.repa-contact.is-ready .repa-contact__sub,
.repa-contact.is-ready .repa-contact__mark {
    opacity: 1;
    transform: none;
}

.repa-contact__stage {
    position: relative;
    padding: 4.5rem 0 6rem;
    background:
        linear-gradient(180deg, #0c0e12 0%, #0a0b0d 100%);
}

.repa-contact__stage-inner {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.repa-contact__section-label {
    margin: 0 0 1.5rem;
    font-family: var(--rc-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.repa-contact__channels {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.repa-contact__channel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    text-decoration: none !important;
    color: var(--rc-text) !important;
    border: 1px solid var(--rc-line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 55%);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-24px);
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.55s ease, opacity 0.55s ease, color 0.25s ease;
}

.repa-contact__channel:visited,
.repa-contact__channel:active,
.repa-contact__channel:hover,
.repa-contact__channel:focus,
.repa-contact__channel:focus-visible {
    text-decoration: none !important;
    color: var(--rc-text) !important;
}

.repa-contact__channel:hover .repa-contact__channel-v,
.repa-contact__channel:focus-visible .repa-contact__channel-v {
    color: #fff;
}

.repa-contact__channel:nth-child(2) { transition-delay: 0.05s; }
.repa-contact__channel:nth-child(3) { transition-delay: 0.1s; }
.repa-contact__channel:nth-child(4) { transition-delay: 0.15s; }
.repa-contact__channel:nth-child(5) { transition-delay: 0.2s; }

.repa-contact__channel.is-in {
    opacity: 1;
    transform: none;
}

.repa-contact__channel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rc-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.repa-contact__channel:hover,
.repa-contact__channel:focus-visible {
    border-color: rgba(178, 31, 39, 0.55);
    background: linear-gradient(135deg, rgba(178, 31, 39, 0.12), transparent 60%);
    outline: none;
}

.repa-contact__channel:hover::before,
.repa-contact__channel:focus-visible::before {
    transform: scaleY(1);
}

.repa-contact__channel--static {
    cursor: default;
}

.repa-contact__channel-idx {
    font-family: var(--rc-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--rc-accent);
}

.repa-contact__channel-k {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rc-muted);
    margin-bottom: 0.35rem;
}

.repa-contact__channel-v {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}

.repa-contact__channel-arrow {
    width: 1.25rem;
    height: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    transform: rotate(45deg) scale(0.7);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.repa-contact__channel:hover .repa-contact__channel-arrow {
    transform: rotate(45deg) scale(0.7) translate(3px, -3px);
    border-color: var(--rc-accent);
}

.repa-contact__panel {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--rc-line);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        var(--rc-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.repa-contact__panel.is-in {
    opacity: 1;
    transform: none;
}

.repa-contact__panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-top: 2px solid var(--rc-accent);
    border-right: 2px solid var(--rc-accent);
    pointer-events: none;
}

.repa-contact__alert {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--rc-line);
}

.repa-contact__alert--ok {
    border-color: rgba(70, 180, 110, 0.45);
    background: rgba(70, 180, 110, 0.1);
}

.repa-contact__alert--err {
    border-color: rgba(178, 31, 39, 0.55);
    background: rgba(178, 31, 39, 0.12);
}

.repa-contact__alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.repa-contact__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.25rem;
    align-items: start;
}

.repa-contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    min-width: 0;
}

.repa-contact__field--full {
    grid-column: 1 / -1;
}

.repa-contact__field > span {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rc-muted);
    line-height: 1.2;
    min-height: 1.05rem;
}

.repa-contact__field > span i {
    font-style: normal;
    color: var(--rc-accent);
}

.repa-contact__field input,
.repa-contact__field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--rc-text);
    font: inherit;
    font-size: 1.05rem;
    line-height: 1.35;
    padding: 0.55rem 0 0.65rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.repa-contact__field input {
    min-height: 2.65rem;
    height: 2.65rem;
}

.repa-contact__field textarea {
    min-height: 9rem;
    height: auto;
    resize: vertical;
}

.repa-contact__field input:focus,
.repa-contact__field textarea:focus {
    border-bottom-color: var(--rc-accent);
    box-shadow: none;
}

.repa-contact__privacy {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.5rem 0 1.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--rc-muted);
    cursor: pointer;
}

.repa-contact__privacy input {
    margin-top: 0.2rem;
    accent-color: var(--rc-accent);
}

.repa-contact__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    border: 0;
    padding: 1rem 1.6rem;
    background: var(--rc-accent);
    color: #fff;
    font-family: var(--rc-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.repa-contact__submit svg {
    transition: transform 0.25s ease;
}

.repa-contact__submit:hover,
.repa-contact__submit:focus-visible {
    background: #96191f;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(178, 31, 39, 0.35);
    outline: none;
}

.repa-contact__submit:hover svg {
    transform: translateX(4px);
}

@keyframes rc-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rc-scan {
    0%, 100% { top: 22%; opacity: 0.15; }
    50% { top: 68%; opacity: 0.65; }
}

@media (max-width: 991px) {
    .repa-contact__hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }

    .repa-contact__stage-inner {
        grid-template-columns: 1fr;
    }

    .repa-contact__mark {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1.5rem;
        font-size: clamp(3.5rem, 22vw, 6rem);
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 640px) {
    .repa-contact__fields {
        grid-template-columns: 1fr;
    }

    .repa-contact__channel {
        grid-template-columns: auto 1fr;
    }

    .repa-contact__channel-arrow {
        display: none;
    }
}

/* Keep page chrome cohesive when this section is active */
.banner-page:has(.repa-contact) {
    background: #0a0b0d;
}

html[dir="rtl"] .repa-contact__channel {
    transform: translateX(24px);
}

html[dir="rtl"] .repa-contact__channel.is-in {
    transform: none;
}

html[dir="rtl"] .repa-contact__channel::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .repa-contact__panel::after {
    right: auto;
    left: 0;
    border-right: 0;
    border-left: 2px solid var(--rc-accent);
}

html[dir="rtl"] .repa-contact__submit:hover svg {
    transform: translateX(-4px);
}

html[dir="rtl"] .repa-contact__mark {
    right: auto;
    left: 0;
}

.repa-contact__map {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(420px, 62vh, 640px);
    background: #070809;
    overflow: hidden;
}

.repa-contact__map-frame {
    position: absolute;
    inset: 0;
}

.repa-contact__map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.85) contrast(1.15) brightness(0.72);
}

.repa-contact__map-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 8, 9, 0.92) 0%, rgba(7, 8, 9, 0.55) 38%, rgba(7, 8, 9, 0.15) 70%, transparent 100%),
        linear-gradient(0deg, rgba(7, 8, 9, 0.55) 0%, transparent 40%),
        radial-gradient(ellipse 40% 50% at 15% 50%, rgba(178, 31, 39, 0.18), transparent 60%);
}

.repa-contact__map-panel {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100% - 2.5rem));
    margin: clamp(2.5rem, 6vh, 4rem) auto clamp(2.5rem, 6vh, 4rem) max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
    padding: 1.75rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 18, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.repa-contact__map-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rc-accent);
    font-weight: 600;
}

.repa-contact__map-title {
    margin: 0 0 0.9rem;
    font-family: var(--rc-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
}

.repa-contact__map-title::before,
.repa-contact__map-title::after {
    content: none !important;
    display: none !important;
}

.repa-contact__map-invite {
    margin: 0 0 1.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.repa-contact__map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.repa-contact__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    font-family: var(--rc-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.repa-contact__map-btn--primary {
    background: var(--rc-accent);
    color: #fff !important;
    border: 1px solid var(--rc-accent);
}

.repa-contact__map-btn--primary:hover,
.repa-contact__map-btn--primary:focus-visible {
    background: #96191f;
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.repa-contact__map-btn--ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.repa-contact__map-btn--ghost:hover,
.repa-contact__map-btn--ghost:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
    outline: none;
}

@media (max-width: 767px) {
    .repa-contact__map {
        min-height: 520px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .repa-contact__map-panel {
        width: calc(100% - 2rem);
        margin: 0 1rem 1.25rem;
    }

    .repa-contact__map-veil {
        background:
            linear-gradient(0deg, rgba(7, 8, 9, 0.92) 0%, rgba(7, 8, 9, 0.35) 45%, transparent 75%),
            radial-gradient(ellipse 60% 40% at 50% 100%, rgba(178, 31, 39, 0.2), transparent 60%);
    }
}

html[dir="rtl"] .repa-contact__map-panel {
    margin-left: auto;
    margin-right: max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
}

html[dir="rtl"] .repa-contact__map-veil {
    background:
        linear-gradient(270deg, rgba(7, 8, 9, 0.92) 0%, rgba(7, 8, 9, 0.55) 38%, rgba(7, 8, 9, 0.15) 70%, transparent 100%),
        linear-gradient(0deg, rgba(7, 8, 9, 0.55) 0%, transparent 40%),
        radial-gradient(ellipse 40% 50% at 85% 50%, rgba(178, 31, 39, 0.18), transparent 60%);
}
