/**
 * Free Resources Page Styles
 */

/* Hero */
.res-hero {
    padding: 4rem 0 3rem;
    background: #fff;
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
}

.res-overline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary, #2563eb);
    margin: 0 0 0.75rem;
}

.res-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900, #0f172a);
    margin: 0 0 1rem;
    max-width: 650px;
}

.res-hero-sub {
    font-size: 1.1rem;
    color: var(--gray-600, #475569);
    line-height: 1.7;
    max-width: 580px;
    margin: 0;
}

/* Resources Grid */
.res-section {
    padding: 4rem 0;
    background: var(--gray-50, #f8fafc);
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
}

.res-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.res-card-icon {
    font-size: 2rem;
    color: var(--brand-primary, #2563eb);
    margin-bottom: 1rem;
}

.res-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900, #0f172a);
    margin: 0 0 0.5rem;
}

.res-card-desc {
    font-size: 0.9rem;
    color: var(--gray-600, #475569);
    line-height: 1.6;
    margin: 0 0 0.5rem;
    flex-grow: 1;
}

.res-card-meta {
    font-size: 0.8rem;
    color: var(--gray-400, #94a3b8);
    margin-bottom: 1.25rem;
}

/* Email capture form inside each card */
.res-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.res-form input[type="email"] {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: var(--gray-900, #0f172a);
    width: 100%;
}

.res-form input[type="email"]:focus {
    outline: 2px solid var(--brand-primary, #2563eb);
    outline-offset: 1px;
    border-color: var(--brand-primary, #2563eb);
}

.res-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--brand-primary, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.res-form-btn:hover {
    background: #1d4ed8;
}

.res-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success state */
.res-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    text-align: center;
}

.res-success i {
    font-size: 1.5rem;
    color: #16a34a;
}

.res-success p {
    font-size: 0.85rem;
    color: #166534;
    margin: 0;
    line-height: 1.5;
}

/* Error state */
.res-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin: 0.25rem 0 0;
}

/* CTA section */
.res-cta-section {
    padding: 4rem 0;
    background: #fff;
}

.res-cta-box {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.res-cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900, #0f172a);
    margin: 0 0 0.75rem;
}

.res-cta-text {
    font-size: 1rem;
    color: var(--gray-600, #475569);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.res-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--brand-primary, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.res-cta-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .res-hero-title {
        font-size: 1.85rem;
    }

    .res-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .res-card {
        border-width: 2px;
    }
}

/* Print */
@media print {
    .res-form, .res-cta-btn {
        display: none;
    }

    .res-section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }
}
