/* ============================================================
   CORE VALUES PAGE - Code Xenix
   Premium design system
   ============================================================ */

/* ---------- Base ---------- */
.cv-page {
    color: var(--text-primary);
    overflow: hidden;
}

.cv-section {
    padding: 100px 0;
    position: relative;
}

/* ---------- Shared ---------- */
.cv-kicker {
    color: var(--brand-primary);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cv-heading {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cv-subheading {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 560px;
}

.cv-section__head {
    margin-bottom: 56px;
}

.cv-section__head--center {
    text-align: center;
}

.cv-section__head--center .cv-subheading {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.cv-hero {
    position: relative;
    padding: 50px 0 50px;
    background: linear-gradient(160deg, var(--bg-body) 0%, var(--bg-surface-alt) 50%, var(--bg-surface) 100%);
    overflow: hidden;
}

.cv-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.25), transparent);
}

.cv-hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cv-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.cv-shape--1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary);
    top: -200px;
    right: -120px;
    animation: cv-float 12s ease-in-out infinite;
}

.cv-shape--2 {
    width: 300px;
    height: 300px;
    background: #5d1eb2;
    bottom: -100px;
    left: -80px;
    animation: cv-float 15s ease-in-out infinite reverse;
}

.cv-shape--3 {
    width: 180px;
    height: 180px;
    background: var(--brand-primary);
    top: 40%;
    left: 50%;
    animation: cv-float 10s ease-in-out infinite 2s;
}

@keyframes cv-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.04);
    }
}

/* Breadcrumb */
.cv-breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.cv-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
}

.cv-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 1.3rem
}

.cv-breadcrumb a:hover {
    color: var(--brand-primary);
}

.cv-breadcrumb .separator {
    color: #5a6570;
}

.cv-breadcrumb [aria-current="page"] {
    color: var(--text-primary);
}

/* Hero content */
.cv-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    animation: cv-fadeUp 0.8s ease both;
}

.cv-hero__content {
    position: relative;
    z-index: 1;
}

.cv-hero__title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 20px;
}

.cv-hero__subtitle {
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 18px;
}

.cv-hero__desc {
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 36px;
}

.cv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero panel */
.cv-hero__panel {
    background: rgba(var(--text-primary-rgb), 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.cv-hero__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-hover));
}

.cv-hero__panel-title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cv-hero__panel-desc {
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.cv-hero__panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cv-hero__panel-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cv-hero__panel-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 207, 20, 0.12);
    border-radius: 10px;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.cv-hero__panel-list strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cv-hero__panel-list span {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Keep existing .cv-hero__panel-list li > div layout clean */
.cv-hero__panel-list li > div {
    display: flex;
    flex-direction: column;
}

/* Buttons - Match header btn-active style */
.cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(17deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    border: 1px solid var(--brand-primary);
    color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(148, 207, 20, 0.5);
    transition: all 0.2s ease-out;
}

.cv-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-main);
    color: var(--text-muted);
    box-shadow: 0 3px 10px rgba(var(--shadow-color-rgb), 0.5);
}

.cv-btn--secondary {
    background: linear-gradient(17deg, var(--bg-panel) 0%, var(--border-main) 100%);
    border: 1px solid var(--border-main);
    color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(var(--shadow-color-rgb), 0.5);
}

.cv-btn--secondary:hover {
    background: linear-gradient(17deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    border-color: var(--brand-primary);
    color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(148, 207, 20, 0.5);
}

.cv-btn--lg {
    min-height: 54px;
    padding: 0 36px;
}

/* ============================================================
   INTRODUCTION
   ============================================================ */
.cv-intro {
    background: var(--bg-body);
}

.cv-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.cv-intro__text p {
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.cv-intro__text p:last-child {
    margin-bottom: 0;
}

.cv-intro__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--text-primary-rgb), 0.06);
    border-radius: 16px;
    padding: 48px 40px;
    display: grid;
    gap: 32px;
}

.cv-intro__stat {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.06);
}

.cv-intro__stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-intro__stat:first-child {
    padding-top: 0;
}

.cv-intro__stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.cv-intro__stat-label {
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 500;
}

/* ============================================================
   CORE VALUES GRID
   ============================================================ */
.cv-values {
    background: var(--bg-surface-alt);
}

.cv-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cv-value-card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Green fill hover effect - like home cards */
.cv-value-card::before {
    background: var(--brand-primary);
    content: '';
    inset: 0;
    position: absolute;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    border-radius: 16px;
}

.cv-value-card:hover::before {
    transform: scale(1);
}

.cv-value-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px) scale(1.02);
}

.cv-value-card:hover .cv-value-card__icon {
    background: rgba(var(--shadow-color-rgb), 0.15);
    color: var(--bg-surface-hover);
}

.cv-value-card:hover .cv-value-card__icon i {
    color: var(--bg-surface-hover);
}

.cv-value-card:hover .cv-value-card__title {
    color: var(--bg-surface-hover);
}

.cv-value-card:hover .cv-value-card__desc {
    color: var(--bg-surface-hover);
}

/* Icon and title on same line */
.cv-value-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.cv-value-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(148, 207, 20, 0.12);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.cv-value-card__icon i {
    font-size: 1.3rem;
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

.cv-value-card__title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
}

.cv-value-card__desc {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.65;
    margin: 0;
    transition: color 0.3s ease;
}

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.cv-process {
    background: var(--bg-body);
}

.cv-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.cv-timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), rgba(148, 207, 20, 0.15));
}

.cv-timeline__item {
    position: relative;
    padding-left: 76px;
    padding-bottom: 40px;
}

.cv-timeline__item:last-child {
    padding-bottom: 0;
}

.cv-timeline__marker {
    position: absolute;
    left: 18px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    border: 3px solid var(--brand-primary);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-timeline__item:hover .cv-timeline__marker {
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(148, 207, 20, 0.35);
}

.cv-timeline__card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 14px;
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: border-color 0.3s ease;
}

/* Green fill hover effect - like home cards */
.cv-timeline__card::before {
    background: var(--brand-primary);
    content: '';
    inset: 0;
    position: absolute;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    border-radius: 14px;
}

.cv-timeline__item:hover .cv-timeline__card::before {
    transform: scale(1);
}

.cv-timeline__item:hover .cv-timeline__card {
    border-color: var(--brand-primary);
}

.cv-timeline__card:hover .cv-timeline__step {
    background: rgba(var(--shadow-color-rgb), 0.15);
    color: var(--bg-surface-hover);
}

.cv-timeline__card:hover h3 {
    color: var(--bg-surface-hover);
}

.cv-timeline__card:hover p {
    color: #1a2025;
}

/* Step and title on same line */
.cv-timeline__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cv-timeline__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(148, 207, 20, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.cv-timeline__card h3 {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.cv-timeline__card p {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.cv-why {
    background: var(--bg-surface-alt);
}

.cv-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cv-why-card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Green fill hover effect - like home cards */
.cv-why-card::before {
    background: var(--brand-primary);
    content: '';
    inset: 0;
    position: absolute;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    border-radius: 16px;
}

.cv-why-card:hover::before {
    transform: scale(1);
}

.cv-why-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px) scale(1.02);
}

.cv-why-card:hover .cv-why-card__icon {
    background: rgba(var(--shadow-color-rgb), 0.15);
}

.cv-why-card:hover .cv-why-card__icon i {
    color: var(--bg-surface-hover);
}

.cv-why-card:hover .cv-why-card__head h3 {
    color: var(--bg-surface-hover);
}

.cv-why-card:hover p {
    color: #1a2025;
}

/* Icon and title on same line */
.cv-why-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.cv-why-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(148, 207, 20, 0.12);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.cv-why-card__icon i {
    font-size: 1.3rem;
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

.cv-why-card__head h3 {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.cv-why-card p {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.65;
    margin: 0;
    transition: color 0.3s ease;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cv-cta {
    background: linear-gradient(160deg, var(--bg-surface-alt) 0%, var(--bg-surface) 50%, var(--bg-body) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cv-cta__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cv-shape--4 {
    width: 400px;
    height: 400px;
    background: var(--brand-primary);
    top: -150px;
    left: -100px;
    opacity: 0.04;
    animation: cv-float 14s ease-in-out infinite;
}

.cv-shape--5 {
    width: 250px;
    height: 250px;
    background: #5d1eb2;
    bottom: -80px;
    right: -60px;
    opacity: 0.05;
    animation: cv-float 11s ease-in-out infinite reverse;
}

.cv-cta__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cv-cta__title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 18px;
}

.cv-cta__desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 36px;
}

.cv-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes cv-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered fade-in (applied via JS) */
.cv-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cv-fade.cv-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .cv-section {
        padding: 72px 0;
    }

    .cv-hero {
        padding: 110px 0 72px;
    }

    .cv-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cv-intro__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cv-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 640px) {
    .cv-section {
        padding: 56px 0;
    }

    .cv-hero {
        padding: 90px 0 56px;
    }

    .cv-hero__grid {
        grid-template-columns: 1fr;
    }

    .cv-hero__title {
        font-size: 2rem;
    }

    .cv-hero__actions {
        flex-direction: column;
    }

    .cv-hero__actions .cv-btn {
        width: 100%;
    }

    .cv-intro__card {
        padding: 32px 24px;
    }

    .cv-intro__stat-number {
        font-size: 2.2rem;
    }

    .cv-values__grid {
        grid-template-columns: 1fr;
    }

    .cv-value-card {
        padding: 28px 22px;
    }

    .cv-timeline {
        padding-left: 0;
    }

    .cv-timeline__line {
        left: 23px;
    }

    .cv-timeline__item {
        padding-left: 64px;
    }

    .cv-timeline__marker {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .cv-why__grid {
        grid-template-columns: 1fr;
    }

    .cv-why-card {
        padding: 28px 22px;
    }

    .cv-cta__actions {
        flex-direction: column;
    }

    .cv-cta__actions .cv-btn {
        width: 100%;
    }
}