/* ================================================================
   Ringchan Why Choose Section — Frontend Styles
   All selectors are prefixed .rwc- to prevent theme conflicts.
   Colors are driven by CSS variables set inline per-section.
   ================================================================ */

/* ── Section Wrapper ─────────────────────────────────────────── */
.rwc-section {
    background-color: var(--rwc-bg, #1a1a1a);
    padding: 70px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.rwc-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ── Header ──────────────────────────────────────────────────── */
.rwc-header {
    margin-bottom: 52px;
}

.rwc-title {
    color: var(--rwc-title, #ffffff);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.rwc-subtitle {
    color: var(--rwc-subtitle, #aaaaaa);
    font-size: 1rem;
    margin: 0;
}

/* ── Feature Row ─────────────────────────────────────────────── */
.rwc-features-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
    position: relative;
}

/* ── Connector Line ──────────────────────────────────────────── */
.rwc-connector {
    flex: 1;
    height: 2px;
    background-color: var(--rwc-line, #e0a020);
    align-self: center;
    /* vertically aligned with icon centers */
    margin-top: -60px; /* offset to align with icon mid */
    min-width: 20px;
    max-width: 80px;
    opacity: 0.6;
}

/* ── Feature Item ────────────────────────────────────────────── */
.rwc-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    flex-shrink: 0;
}

/* ── Icon Wrapper ────────────────────────────────────────────── */
.rwc-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--rwc-icon-border, #555555);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    margin-bottom: 14px;
    position: relative;
}

/* Active State */
.rwc-feature-item.rwc-active .rwc-icon-wrap {
    background: var(--rwc-active-bg, #e0a020);
    border-color: var(--rwc-active-bg, #e0a020);
    box-shadow: 0 0 0 6px rgba(224, 160, 32, 0.18);
}

.rwc-feature-item.rwc-active .rwc-icon-wrap .rwc-icon-svg svg {
    stroke: var(--rwc-active-icon, #ffffff);
    color: var(--rwc-active-icon, #ffffff);
}

/* Hover State — lights up the icon */
.rwc-icon-wrap:hover {
    background: var(--rwc-hover-bg, #e0a020);
    border-color: var(--rwc-hover-bg, #e0a020);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(224, 160, 32, 0.35);
}

.rwc-icon-wrap:hover .rwc-icon-svg svg {
    stroke: var(--rwc-hover-icon, #ffffff);
    color: var(--rwc-hover-icon, #ffffff);
}

/* ── SVG Icon ────────────────────────────────────────────────── */
.rwc-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rwc-icon-color, #e0a020);
}

.rwc-icon-svg svg {
    width: 28px;
    height: 28px;
    stroke: var(--rwc-icon-color, #e0a020);
    color: var(--rwc-icon-color, #e0a020);
    fill: none;
    transition: stroke 0.25s ease, color 0.25s ease;
    display: block;
}

/* ── Feature Labels ──────────────────────────────────────────── */
.rwc-feature-label {
    color: var(--rwc-label, #ffffff);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.rwc-feature-item.rwc-active .rwc-feature-label {
    color: var(--rwc-active-label, #e0a020);
}

.rwc-feature-desc {
    color: var(--rwc-desc, #999999);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
}

/* ── CTA Button ──────────────────────────────────────────────── */
.rwc-cta {
    margin-top: 10px;
}

.rwc-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--rwc-btn-bg, transparent);
    color: var(--rwc-btn-color, #ffffff);
    border: 2px solid var(--rwc-btn-border, #ffffff);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.rwc-btn:hover,
.rwc-btn:focus {
    background: var(--rwc-btn-hover-bg, #e0a020);
    color: var(--rwc-btn-hover-color, #ffffff);
    border-color: var(--rwc-btn-hover-border, #e0a020);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 160, 32, 0.3);
    text-decoration: none;
    outline: none;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media ( max-width: 700px ) {
    .rwc-features-row {
        flex-wrap: wrap;
        gap: 28px;
        justify-content: center;
    }

    .rwc-connector {
        display: none;
    }

    .rwc-feature-item {
        width: 100px;
    }
}

@media ( max-width: 420px ) {
    .rwc-feature-item {
        width: 85px;
    }
    .rwc-icon-wrap {
        width: 52px;
        height: 52px;
    }
    .rwc-icon-svg svg {
        width: 22px;
        height: 22px;
    }
}
