/* ===== Blocks: hero / split / cards / timeline / process / cta ===== */

/* Hero */
.block-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.block-hero--page {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 70px;
}

.block-hero--home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-hero--page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomIn 18s infinite alternate;
}

.hero-page::before {
    background-image: var(
        --hero-bg,
        url("https://images.unsplash.com/photo-1619767886558-efdc259cde1a?q=80&w=1920&auto=format&fit=crop")
    );
    filter: brightness(0.28);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(
        --hero-bg,
        url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?q=80&w=1920&auto=format&fit=crop")
    );
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s infinite alternate;
    filter: brightness(0.3);
}

.page-hero-content,
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 1.2s ease-out;
}

.hero-content {
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-logo-img {
    max-height: 96px;
    width: auto;
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
}

.hero-title span {
    color: var(--evc-orange);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    letter-spacing: 8px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.hero-actions--center {
    justify-content: center;
    font-size: 0.2em;
}

.page-desc {
    max-width: 840px;
    margin-bottom: 36px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
    z-index: 10;
}

/* Split */
.split-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.split-2 {
    grid-template-columns: 1fr 1fr;
}

.split-panel {
    border: 1px solid var(--line-color);
    padding: 36px;
    background: rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.split-panel:hover {
    border-color: var(--evc-orange);
    transform: translateY(-6px);
}

/* Slider */
.section-slider.section-slider--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
}

.section-slider.section-slider--full .slider-wrapper {
    position: relative;
    width: 100%;
}

.section-slider.section-slider--full .slider {
    border: 0;
    border-radius: 0;
}

.section-slider.section-slider--full .slider-slide img {
    width: 100%;
    height: 72vh;
    min-height: 420px;
    object-fit: cover;
}

.slider-wrapper {
    position: relative;
}
.slider {
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    touch-action: pan-y;
    user-select: none;
    position: relative;
}

.slider-track {
    position: relative;
    width: 100%;
    min-height: inherit;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
    z-index: 1;
}

.slider-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.slider-caption h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.slider-caption p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        opacity 0.25s ease;
    padding: 0;
    opacity: 0.9;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--evc-orange);
    transform: scale(1.15);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .section-slider.section-slider--full .slider-slide img,
    .slider-slide img {
        height: 42vh;
        min-height: 260px;
    }
    .slider-caption {
        padding: 16px 20px 44px;
    }
    .slider-caption h3 {
        font-size: 18px;
    }
}

/* Cards */
.cards-grid {
    display: grid;
    gap: 22px;
}

.cards-grid--compact {
    gap: 16px;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    border: 1px solid var(--line-color);
    padding: 30px;
    background: rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
}

.card:hover {
    border-color: var(--evc-orange);
    transform: translateY(-8px);
}

.card--icon {
    min-height: 260px;
}

.card--rich {
    padding: 36px;
}

.card--stat {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.01);
}

.card-icon {
    font-size: 38px;
    color: var(--evc-orange);
    margin-bottom: 18px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.split-panel > .card-title {
    font-size: 22px;
    margin-bottom: 16px;
}

.card-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
}

.card-desc + .card-desc {
    margin-top: 18px;
}

.card-desc + .card-title {
    margin-top: 28px;
}

.card-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--evc-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-tag--line {
    border-top: 1px solid #333;
    padding-top: 14px;
    margin-top: 18px;
    margin-bottom: 0;
}

.card-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.card-num span {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Media cards */
.cards-media {
    gap: 15px;
}

.card--media {
    padding: 0;
    height: 300px;
    overflow: hidden;
}

.card--media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s,
        filter 0.8s;
    filter: grayscale(100%);
}

.card--media:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    text-align: left;
    opacity: 0;
    transition: 0.4s;
}

.card--media:hover .card-overlay {
    opacity: 1;
}

.card--media .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Contact info */
.contact-info-note-wrap {
    margin-top: 40px;
}

/* CTA */
.cta {
    border: 1px solid #333;
    padding: 48px;
    background: linear-gradient(
        180deg,
        rgba(255, 102, 0, 0.12),
        rgba(0, 0, 0, 0.05)
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cta h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.cta p {
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.8;
    max-width: 720px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Bullet list */
.bullet-list li {
    color: #ddd;
    font-size: 14px;
    line-height: 1.9;
    padding-left: 18px;
    position: relative;
    margin-bottom: 10px;
}
.bullet-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--evc-orange);
    position: absolute;
    left: 0;
    top: 10px;
}

/* Home bounce */
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .split-2 {
        grid-template-columns: 1fr;
    }

    .cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .block-hero--page {
        padding: 120px 5% 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 3px;
        margin-bottom: 32px;
    }

    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }

    .split-panel,
    .card {
        padding: 26px;
    }

    .card--media {
        height: 240px;
    }

    .cta {
        padding: 32px 24px;
    }
}

/* ===== Block: markdown ===== */
.markdown-wrap {
    max-width: none;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

.markdown-wrap .rich-text {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px 48px;
    border: 1px solid var(--line-color);
    background: rgba(0, 0, 0, 0.08);
    color: #d7d7d7;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: break-word;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.markdown-wrap .rich-text > *:first-child {
    margin-top: 0;
}

.markdown-wrap .rich-text > *:last-child {
    margin-bottom: 0;
}

.markdown-wrap .rich-text .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.8em 0;
}
.markdown-wrap .rich-text .table-scroll table {
    width: max-content;
    min-width: 100%;
    margin: 0;
    border-collapse: collapse;
    white-space: nowrap;
}

/* Headings */
.markdown-wrap .rich-text h1,
.markdown-wrap .rich-text h2,
.markdown-wrap .rich-text h3,
.markdown-wrap .rich-text h4,
.markdown-wrap .rich-text h5,
.markdown-wrap .rich-text h6 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.7em;
    margin-bottom: 0.7em;
    letter-spacing: 0.3px;
}

.markdown-wrap .rich-text h1 {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-color);
}

.markdown-wrap .rich-text h2 {
    font-size: 30px;
    padding-left: 14px;
    border-left: 4px solid var(--evc-orange);
}

.markdown-wrap .rich-text h3 {
    font-size: 24px;
}

.markdown-wrap .rich-text h4 {
    font-size: 20px;
    color: #e5e5e5;
}

.markdown-wrap .rich-text h5 {
    font-size: 17px;
    color: #d9d9d9;
}

.markdown-wrap .rich-text h6 {
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Paragraph */
.markdown-wrap .rich-text p {
    margin: 0 0 1.15em;
    color: #cfcfcf;
}

/* Strong / emphasis */
.markdown-wrap .rich-text strong {
    color: var(--text-white);
    font-weight: 700;
}

.markdown-wrap .rich-text em {
    color: #f0f0f0;
    font-style: italic;
}

/* Links */
.markdown-wrap .rich-text a {
    color: var(--evc-orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 102, 0, 0.35);
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.markdown-wrap .rich-text a:hover {
    color: #ff8533;
    border-bottom-color: var(--evc-orange);
    box-shadow: inset 0 -1px 0 rgba(255, 102, 0, 0.2);
}

/* Lists */
.markdown-wrap .rich-text ul,
.markdown-wrap .rich-text ol {
    margin: 0 0 1.4em 1.5em;
    padding: 0;
}

.markdown-wrap .rich-text ul {
    list-style: none;
    margin-left: 0;
}

.markdown-wrap .rich-text ul li {
    position: relative;
    padding-left: 20px;
}

.markdown-wrap .rich-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 6px;
    height: 6px;
    background: var(--evc-orange);
    transform: translateY(-50%);
}

.markdown-wrap .rich-text ol {
    padding-left: 1.4em;
}

.markdown-wrap .rich-text li {
    margin-bottom: 0.65em;
    color: #d4d4d4;
    line-height: 1.85;
}

.markdown-wrap .rich-text li > ul,
.markdown-wrap .rich-text li > ol {
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}

/* Quote */
.markdown-wrap .rich-text blockquote {
    margin: 1.8em 0;
    padding: 22px 24px;
    border-left: 4px solid var(--evc-orange);
    background: rgba(255, 255, 255, 0.03);
    color: #bdbdbd;
}

.markdown-wrap .rich-text blockquote p {
    color: #c8c8c8;
}

.markdown-wrap .rich-text blockquote p:last-child {
    margin-bottom: 0;
}

/* Rule */
.markdown-wrap .rich-text hr {
    border: none;
    border-top: 1px solid var(--line-color);
    margin: 2.2em 0;
}

/* Images */
.markdown-wrap .rich-text img {
    display: block;
    width: auto;
    max-width: min(100%, 920px);
    height: auto;
    margin: 1.8em auto;
    border: 1px solid #2a2a2a;
    background: #111;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.22);
    filter: saturate(0.96) contrast(1.02);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease,
        border-color 0.35s ease;
}

.markdown-wrap .rich-text img:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        0 6px 18px rgba(255, 102, 0, 0.12);
    filter: saturate(1.02) contrast(1.04);
}

/* Code */
.markdown-wrap .rich-text code {
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
    background: rgba(255, 255, 255, 0.06);
    color: #ffd3b3;
    padding: 0.18em 0.42em;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.markdown-wrap .rich-text pre {
    margin: 1.6em 0;
    padding: 18px 20px;
    background: #0b0b0b;
    border: 1px solid #262626;
    overflow-x: auto;
    border-radius: 2px;
}

.markdown-wrap .rich-text pre code {
    background: transparent;
    border: none;
    color: #e8e8e8;
    padding: 0;
    display: block;
    white-space: pre;
    line-height: 1.75;
}

/* Tables */
.markdown-wrap .rich-text table {
    display: table;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    border: 1px solid var(--line-color);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.markdown-wrap .rich-text thead {
    background: rgba(255, 102, 0, 0.08);
}

.markdown-wrap .rich-text th,
.markdown-wrap .rich-text td {
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--line-color);
    vertical-align: top;
}

.markdown-wrap .rich-text th {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.markdown-wrap .rich-text td {
    color: #d0d0d0;
    font-size: 15px;
}

/* Tablet */
@media (max-width: 992px) {
    .markdown-wrap .rich-text {
        max-width: 100%;
        padding: 36px 32px;
    }

    .markdown-wrap .rich-text h1 {
        font-size: 34px;
    }

    .markdown-wrap .rich-text h2 {
        font-size: 26px;
    }

    .markdown-wrap .rich-text h3 {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .markdown-wrap .rich-text th,
    .markdown-wrap .rich-text td {
        padding: 12px;
        font-size: 14px;
    }

    .markdown-wrap .rich-text {
        padding: 24px 20px;
        font-size: 15px;
        line-height: 1.8;
    }

    .markdown-wrap .rich-text h1 {
        font-size: 28px;
        padding-bottom: 12px;
    }

    .markdown-wrap .rich-text h2 {
        font-size: 22px;
        padding-left: 12px;
    }

    .markdown-wrap .rich-text h3 {
        font-size: 19px;
    }

    .markdown-wrap .rich-text h4 {
        font-size: 17px;
    }

    .markdown-wrap .rich-text ul li {
        padding-left: 18px;
    }

    .markdown-wrap .rich-text blockquote {
        padding: 16px 18px;
    }

    .markdown-wrap .rich-text pre {
        padding: 14px 16px;
    }

    .markdown-wrap .rich-text th,
    .markdown-wrap .rich-text td {
        padding: 12px;
        font-size: 14px;
    }
}
