/*
 * resources.css — Samatva Solutions · Resources page
 * ────────────────────────────────────────────────────
 * Layered on top of style.css (design tokens) and about.css
 * (footer, CTA banner, button variants, scroll-reveal).
 *
 * SECTIONS:
 *   1.  Hero section             (.rs-hero)
 *   2.  Shared section utils     (.rs-section, .rs-section-header)
 *   3.  Accessibility Explained  (.rs-concept-grid, .rs-pour-*)
 *   4.  WCAG Guide               (.rs-level-*, .rs-criteria-*)
 *   5.  Testing Tools            (.rs-tools-grid, .rs-tool-card, .rs-callout)
 *   6.  India Compliance         (.rs-india-*)
 *   7.  FAQ                      (.rs-faq-*)
 *   8.  Responsive breakpoints
 */


/* ══════════════════════════════════════════════════════
   1. HERO SECTION
══════════════════════════════════════════════════════ */

.rs-hero {
    background: linear-gradient(135deg, #e8f0fc 0%, #dbe8ff 40%, #f0f6ff 100%);
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
    position: relative;
}

.rs-hero::before {
    /* decorative radial glow */
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27, 79, 216, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.rs-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

/* ── Eyebrow ── */
.rs-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    background: rgba(27, 79, 216, 0.10);
    border: 1.5px solid rgba(27, 79, 216, 0.20);
    border-radius: 9999px;
    color: #1B4FD8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ── Hero heading ── */
.rs-hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0d1117;
    margin-bottom: 1.25rem;
}

.rs-title-accent {
    color: #1B4FD8;
}

/* ── Hero description ── */
.rs-hero-desc {
    font-size: 1.0625rem;
    color: #374151;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* ── CTA row ── */
.rs-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}

.rs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease,
        border-color 0.2s ease, transform 0.15s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}

.rs-btn--primary {
    background: #1B4FD8;
    color: #ffffff;
    border-color: #1B4FD8;
    box-shadow: 0 4px 16px rgba(27, 79, 216, 0.28);
}

.rs-btn--primary:hover {
    background: #1239a6;
    border-color: #1239a6;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(27, 79, 216, 0.38);
}

.rs-btn--outline {
    background: transparent;
    color: #1B4FD8;
    border-color: rgba(27, 79, 216, 0.35);
}

.rs-btn--outline:hover {
    background: rgba(27, 79, 216, 0.06);
    border-color: #1B4FD8;
    transform: translateY(-1px);
}

.rs-btn:focus-visible {
    outline: 3px solid var(--clr-focus);
    outline-offset: 3px;
}

/* ── Quick-jump cards ── */
.rs-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rs-jump-card {
    background: #ffffff;
    border: 1.5px solid #dce9f8;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(27, 79, 216, 0.06);
}

.rs-jump-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(27, 79, 216, 0.14);
    border-color: #1B4FD8;
}

.rs-jump-card:focus-visible {
    outline: 3px solid var(--clr-focus);
    outline-offset: 3px;
    border-radius: 16px;
}

.rs-jump-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.rs-jump-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}


/* ══════════════════════════════════════════════════════
   2. SHARED SECTION UTILITIES
══════════════════════════════════════════════════════ */

.rs-section {
    padding: 5rem 0;
    background: #ffffff;
}

.rs-section--alt {
    background: #f8fafc;
}

.rs-section--blue {
    background: #1B4FD8;
}

.rs-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.rs-section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1B4FD8;
    margin-bottom: 0.6rem;
}

.rs-section-eyebrow--light {
    color: rgba(255, 255, 255, 0.80);
}

.rs-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #003366;
    margin-bottom: 0.75rem;
}

.rs-section-title--light {
    color: #ffffff;
}

.rs-section-sub {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.7;
}

.rs-section-sub--light {
    color: rgba(255, 255, 255, 0.75);
}


/* ══════════════════════════════════════════════════════
   3. ACCESSIBILITY EXPLAINED
══════════════════════════════════════════════════════ */

/* ── Big quote ── */
.rs-big-quote {
    background: linear-gradient(135deg, #e8f0fc 0%, #dbe8ff 100%);
    border-left: 5px solid #1B4FD8;
    border-radius: 0 16px 16px 0;
    padding: 2.5rem 2.5rem 2rem;
    margin: 0 0 3.5rem;
    max-width: 780px;
}

.rs-big-quote p {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: #0d1117;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.rs-big-quote cite {
    font-size: 0.875rem;
    color: #1B4FD8;
    font-weight: 600;
    font-style: normal;
}

/* ── Concept card grid ── */
.rs-concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.rs-concept-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rs-concept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
    border-color: #c7d9f5;
}

.rs-concept-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #dbe8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4FD8;
    flex-shrink: 0;
    transition: background 0.22s ease;
}

.rs-concept-card:hover .rs-concept-icon {
    background: #1B4FD8;
    color: #fff;
}

.rs-concept-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0d1117;
    line-height: 1.3;
}

.rs-concept-desc {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
    flex: 1;
}

.rs-concept-desc strong {
    color: #0d1117;
    font-weight: 700;
}

/* ── POUR deep-dive ── */
.rs-pour-section {
    background: #f0f6ff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
}

.rs-pour-heading {
    font-size: 1.375rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.rs-pour-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rs-pour-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    border-left: 5px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rs-pour-card--p {
    border-left-color: #1B4FD8;
}

.rs-pour-card--o {
    border-left-color: #0EA5E9;
}

.rs-pour-card--u {
    border-left-color: #8b5cf6;
}

.rs-pour-card--r {
    border-left-color: #14b8a6;
}

.rs-pour-letter {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    min-width: 44px;
    letter-spacing: -0.04em;
}

.rs-pour-card--p .rs-pour-letter {
    color: #1B4FD8;
}

.rs-pour-card--o .rs-pour-letter {
    color: #0EA5E9;
}

.rs-pour-card--u .rs-pour-letter {
    color: #8b5cf6;
}

.rs-pour-card--r .rs-pour-letter {
    color: #14b8a6;
}

.rs-pour-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0d1117;
    margin-bottom: 0.4rem;
}

.rs-pour-desc {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.65;
}


/* ══════════════════════════════════════════════════════
   4. WCAG 2.1 GUIDE
══════════════════════════════════════════════════════ */

/* ── Conformance level cards ── */
.rs-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    align-items: start;
}

.rs-level-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.22s ease;
}

.rs-level-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.rs-level-card--featured {
    border-color: #1B4FD8;
    background: linear-gradient(160deg, #f5f8ff 0%, #fff 100%);
    box-shadow: 0 6px 24px rgba(27, 79, 216, 0.14);
}

.rs-level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #f1f5f9;
    color: #475569;
    width: fit-content;
}

.rs-level-badge--aa {
    background: #1B4FD8;
    color: #ffffff;
}

.rs-level-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #003366;
    letter-spacing: -0.02em;
}

.rs-level-desc {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.65;
}

.rs-level-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.rs-level-list li {
    font-size: 0.875rem;
    color: #374151;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.rs-level-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1B4FD8;
    font-weight: 700;
}

/* ── Success criteria grid ── */
.rs-criteria-section {
    background: #f0f6ff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
}

.rs-criteria-heading {
    font-size: 1.375rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.rs-criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.rs-criterion {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.25rem;
    border-left: 4px solid #1B4FD8;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rs-criterion-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1B4FD8;
    letter-spacing: 0.04em;
    font-family: monospace;
}

.rs-criterion-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0d1117;
}

.rs-criterion-desc {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}


/* ══════════════════════════════════════════════════════
   5. TESTING TOOLS
══════════════════════════════════════════════════════ */

.rs-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.rs-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rs-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    border-color: #c7d9f5;
}

.rs-tool-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rs-tool-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.rs-tool-badge--free {
    background: #dcfce7;
    color: #15803d;
}

.rs-tool-badge--paid {
    background: #fef3c7;
    color: #b45309;
}

.rs-tool-type {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

.rs-tool-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0d1117;
    line-height: 1.3;
}

.rs-tool-desc {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.rs-tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.rs-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1B4FD8;
    background: #dbe8ff;
    border-radius: 9999px;
    padding: 0.2rem 0.55rem;
    letter-spacing: 0.02em;
}

/* ── Callout box ── */
.rs-callout {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
}

.rs-callout-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rs-callout-body {
    flex: 1;
}

.rs-callout-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.rs-callout-text {
    font-size: 0.9375rem;
    color: #78350f;
    line-height: 1.65;
    margin: 0;
}


/* ══════════════════════════════════════════════════════
   6. INDIA COMPLIANCE
══════════════════════════════════════════════════════ */

.rs-india-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.rs-india-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(8px);
    transition: background 0.22s ease, transform 0.22s ease;
}

.rs-india-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.rs-india-num {
    font-size: 2.25rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.rs-india-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.rs-india-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.rs-india-cta {
    text-align: center;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.rs-india-cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}


/* ══════════════════════════════════════════════════════
   7. FAQ
══════════════════════════════════════════════════════ */

.rs-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rs-faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.rs-faq-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.rs-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #0d1117;
    line-height: 1.45;
    transition: color 0.18s ease;
}

.rs-faq-question:hover {
    color: #1B4FD8;
}

.rs-faq-question:focus-visible {
    outline: 3px solid var(--clr-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.rs-faq-chevron {
    flex-shrink: 0;
    color: #6B7280;
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}

.rs-faq-item--open .rs-faq-chevron {
    transform: rotate(180deg);
    color: #1B4FD8;
}

.rs-faq-item--open .rs-faq-question {
    color: #1B4FD8;
}

.rs-faq-answer {
    padding-bottom: 1.4rem;
}

.rs-faq-answer[hidden] {
    display: none;
}

.rs-faq-answer p {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.75;
    margin: 0;
}


/* ══════════════════════════════════════════════════════
   8. RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════ */

/* ── Tablet (≤ 960px) ── */
@media (max-width: 960px) {

    .rs-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .rs-hero-cards {
        grid-template-columns: repeat(5, 1fr);
    }

    .rs-hero-desc {
        max-width: 100%;
    }

    .rs-concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rs-level-grid {
        grid-template-columns: 1fr;
    }

    .rs-criteria-grid {
        grid-template-columns: 1fr;
    }

    .rs-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rs-india-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {

    .rs-hero {
        padding: 3.5rem 0 3rem;
    }

    .rs-hero-title {
        font-size: 2.1rem;
    }

    .rs-hero-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .rs-hero-cards .rs-jump-card:nth-child(4),
    .rs-hero-cards .rs-jump-card:nth-child(5) {
        /* last 2 cards stretch across in pair */
        grid-column: span 1;
    }

    .rs-concept-grid {
        grid-template-columns: 1fr;
    }

    .rs-pour-section {
        padding: 2rem 1.25rem;
    }

    .rs-pour-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .rs-pour-letter {
        font-size: 1.75rem;
        min-width: auto;
    }

    .rs-section {
        padding: 3.5rem 0;
    }

    .rs-big-quote {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .rs-big-quote p {
        font-size: 1.1rem;
    }

    .rs-criteria-section {
        padding: 2rem 1.25rem;
    }

    .rs-tools-grid {
        grid-template-columns: 1fr;
    }

    .rs-india-grid {
        grid-template-columns: 1fr;
    }

    .rs-callout {
        flex-direction: column;
        gap: 0.75rem;
    }

    .rs-faq-question {
        font-size: 0.9375rem;
    }
}