/* =============================================
   WHY.CSS — Why Choose Us · Full-Canvas Network Background
   ============================================= */

/* ══════════════════════════════════════════════
   SECTION
   ══════════════════════════════════════════════ */
.why-section {
    position: relative;
    background: #05070f;
    padding: 128px 0 136px;
    overflow: hidden;
    border-top: 1px solid rgba(245, 184, 0, 0.07);
    border-bottom: 1px solid rgba(245, 184, 0, 0.07);
}

/* ── Canvas: absolute background covering full section ── */
.why-canvas-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   INNER LAYOUT — content left-anchored, canvas fills right
   ══════════════════════════════════════════════ */
.why-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(32px, 5vw, 96px);
    display: flex;
    align-items: center;
    min-height: 580px;
}

/* ══════════════════════════════════════════════
   LEFT: CONTENT — dark gradient backdrop ensures readability
   ══════════════════════════════════════════════ */
.why-content {
    position: relative;
    width: min(600px, 56%);
    flex-shrink: 0;
    padding-right: 48px;
}

/* Gradient fades left-to-right so canvas shows through on right */
.why-content::before {
    content: '';
    position: absolute;
    top: -96px;
    bottom: -96px;
    left: clamp(-32px, -5vw, -96px);
    right: -88px;
    background: linear-gradient(
        95deg,
        rgba(5, 7, 15, 0.99) 0%,
        rgba(5, 7, 15, 0.94) 42%,
        rgba(5, 7, 15, 0.62) 68%,
        transparent 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ── Eyebrow ── */
.why-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
    margin-bottom: 28px;
}

.why-eyebrow__line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.45;
    flex-shrink: 0;
}

/* ── Heading ── */
.why-heading {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 56px;
}

.why-heading--accent {
    color: var(--accent);
    display: block;
}

/* ══════════════════════════════════════════════
   WHY LIST — dot-rail connector
   ══════════════════════════════════════════════ */
.why-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.why-item {
    display: flex;
    gap: 22px;
    cursor: default;
    transition: opacity 0.25s ease;
}

/* Dim non-hovered siblings */
.why-list:has(.why-item:hover) .why-item:not(:hover) {
    opacity: 0.42;
}

/* ── Dot rail ── */
.why-item__dot-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 18px;
    padding-top: 3px;
}

.why-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 184, 0, 0.5);
    background: transparent;
    flex-shrink: 0;
    transition:
        background    0.22s ease,
        border-color  0.22s ease,
        box-shadow    0.22s ease,
        transform     0.22s ease;
}

.why-item:hover .why-item__dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow:
        0 0 10px rgba(245, 184, 0, 0.55),
        0 0 22px rgba(245, 184, 0, 0.20);
    transform: scale(1.25);
}

.why-item__connector {
    flex: 1;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(245, 184, 0, 0.22) 0%,
        rgba(245, 184, 0, 0.06) 100%
    );
    margin-top: 5px;
    min-height: 32px;
    transition: background 0.22s ease;
}

.why-item__connector--hidden {
    visibility: hidden;
}

.why-item:hover .why-item__connector {
    background: linear-gradient(
        to bottom,
        rgba(245, 184, 0, 0.45) 0%,
        rgba(245, 184, 0, 0.08) 100%
    );
}

/* ── Body ── */
.why-item__body {
    padding-bottom: 32px;
    flex: 1;
}

.why-item:last-child .why-item__body {
    padding-bottom: 0;
}

.why-item__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 7px;
    transition: color 0.22s ease;
}

.why-item:hover .why-item__title {
    color: var(--accent);
}

.why-item__desc {
    font-family: var(--font-body);
    font-size: 0.83rem;
    line-height: 1.80;
    color: var(--text-muted);
    max-width: 360px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 860px) {
    .why-section { padding: 80px 0 88px; }

    .why-inner {
        min-height: auto;
        padding: 0 clamp(20px, 5vw, 40px);
    }

    .why-content {
        width: 100%;
        padding-right: 0;
    }

    /* On mobile, hide gradient backdrop and rely on section bg */
    .why-content::before { display: none; }

    /* :has() not supported everywhere */
    .why-list:has(.why-item:hover) .why-item:not(:hover) { opacity: 1; }
}

@media (max-width: 480px) {
    .why-section { padding: 64px 0 72px; }
    .why-heading  { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 40px; }
    .why-item__title { font-size: 0.9rem; }
}
