/**
 * TopLine Business Resources Content Styles
 */

/* ─────────────────────────────────────────────────────────────────────────────
   HIDE DEFAULT PAGE HEADER ON BUSINESS RESOURCE PAGES
   These pages have their own hero sections, so we hide the theme's default header
───────────────────────────────────────────────────────────────────────────── */

/* Business Resource pages (IDs: 1081, 1082, 1083, 1084, 1085, 424, 420, 422) */
/* Business Credit Cards page (ID: 1073) */
.page-id-1081 .page-header,
.page-id-1082 .page-header,
.page-id-1083 .page-header,
.page-id-1084 .page-header,
.page-id-1085 .page-header,
.page-id-1073 .page-header,
.page-id-424 .page-header,
.page-id-420 .page-header,
.page-id-422 .page-header {
    display: none !important;
}

/* Also hide for any page using the business resources widget */
body:has(.topline-biz-resources-widget) .page-header {
    display: none !important;
}

/* Ensure no gap between header and hero */
.page-id-1081 .site-main,
.page-id-1082 .site-main,
.page-id-1083 .site-main,
.page-id-1084 .site-main,
.page-id-1085 .site-main,
.page-id-1073 .site-main,
.page-id-424 .site-main,
.page-id-420 .site-main,
.page-id-422 .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:has(.topline-biz-resources-widget) .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.topline-biz-resources-widget {
    --res-navy: #1B2B4B;
    --res-teal: #00A5B5;
    --res-red: #C41230;
    --res-white: #FFFFFF;
    --res-gray-50: #F9FAFB;
    --res-gray-100: #F3F4F6;
    --res-gray-200: #E5E7EB;
    --res-gray-600: #6B7280;
    --res-gray-900: #111827;
}

/* ─────────────────────────────────────────────────────────────────────────────
   INTRO SECTION
───────────────────────────────────────────────────────────────────────────── */

.biz-res-intro {
    background: var(--res-white);
    padding: 64px 24px 32px;
}

.biz-res-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.biz-res-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--res-navy);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    text-align: center;
}

.biz-res-intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--res-gray-600);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURE CARDS
───────────────────────────────────────────────────────────────────────────── */

.biz-res-features {
    background: var(--res-white);
    padding: 48px 24px 72px;
}

.biz-res-features-grid {
    display: grid;
    gap: 24px;
}

.biz-res-features-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.biz-res-features-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.biz-res-features-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

.biz-res-features-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .biz-res-features-grid--3,
    .biz-res-features-grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .biz-res-features-grid {
        grid-template-columns: 1fr;
    }
}

.biz-res-feature-card {
    background: #F8F9FA;
    border: 1px solid #F0F1F3;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.biz-res-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(27, 43, 75, 0.08);
}

.biz-res-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(196, 18, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.biz-res-feature-card__icon svg {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
    color: var(--res-red);
}

.biz-res-feature-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--res-navy);
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.biz-res-feature-card__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--res-gray-600);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STEPS SECTION
───────────────────────────────────────────────────────────────────────────── */

.biz-res-steps {
    background: var(--res-gray-50);
    padding: 72px 24px;
}

.biz-res-steps__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--res-navy);
    margin: 0 0 40px;
    text-align: center;
    letter-spacing: -0.02em;
}

.biz-res-steps-list {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.biz-res-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--res-white);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.biz-res-step__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--res-teal);
    color: var(--res-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-res-step__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--res-gray-900);
    margin: 0;
    padding-top: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BENEFITS LIST
───────────────────────────────────────────────────────────────────────────── */

.biz-res-benefits {
    background: var(--res-white);
    padding: 72px 24px;
}

.biz-res-benefits__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--res-navy);
    margin: 0 0 32px;
    text-align: center;
    letter-spacing: -0.02em;
}

.biz-res-benefits__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
    display: grid;
    gap: 16px;
}

.biz-res-benefits__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--res-gray-900);
    padding: 16px 20px;
    background: var(--res-gray-50);
    border-radius: 10px;
}

.biz-res-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--res-teal);
    margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   APP DOWNLOAD LINKS
───────────────────────────────────────────────────────────────────────────── */

.biz-res-app-links {
    background: var(--res-gray-50);
    padding: 56px 24px;
    text-align: center;
}

.biz-res-app-links__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--res-navy);
    margin: 0 0 24px;
}

.biz-res-app-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.biz-res-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--res-navy);
    color: var(--res-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.biz-res-app-btn:hover {
    background: #2a3f66;
    color: var(--res-white);
    transform: translateY(-2px);
}

.biz-res-app-btn svg {
    width: 22px;
    height: 22px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────────────────────────────── */

.biz-res-cta {
    background: #0C2333;
    padding: 80px 24px 100px;
    text-align: center;
}

.biz-res-cta .biz-res-inner {
    max-width: 800px;
    width: 100%;
}

.biz-res-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Title - matches "Ready to Join" heading size */
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__title,
.biz-res-cta .biz-res-cta__title,
.biz-res-cta__title,
h2.biz-res-cta__title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(32px, 4.5vw, 48px) !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 0 22px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
}

/* Description text */
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__text,
.biz-res-cta .biz-res-cta__text,
.biz-res-cta__text {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 24px !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.biz-res-cta__contact {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Phone and email links */
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__phone,
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__email,
.biz-res-cta .biz-res-cta__phone,
.biz-res-cta .biz-res-cta__email,
.biz-res-cta__phone,
.biz-res-cta__email,
a.biz-res-cta__phone,
a.biz-res-cta__email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.topline-biz-resources-widget .biz-res-cta .biz-res-cta__phone:hover,
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__email:hover,
.biz-res-cta .biz-res-cta__phone:hover,
.biz-res-cta .biz-res-cta__email:hover,
.biz-res-cta__phone:hover,
.biz-res-cta__email:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

.topline-biz-resources-widget .biz-res-cta .biz-res-cta__phone svg,
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__email svg,
.biz-res-cta .biz-res-cta__phone svg,
.biz-res-cta .biz-res-cta__email svg,
.biz-res-cta__phone svg,
.biz-res-cta__email svg {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* CTA Button - pill style matching "Become a Member" button */
.topline-biz-resources-widget .biz-res-cta .biz-res-cta__btn,
.biz-res-cta .biz-res-cta__btn,
.biz-res-cta__btn,
a.biz-res-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2fa3a2 !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(47, 163, 162, 0.35);
}

.topline-biz-resources-widget .biz-res-cta .biz-res-cta__btn:hover,
.biz-res-cta .biz-res-cta__btn:hover,
.biz-res-cta__btn:hover {
    background: #248a89 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 163, 162, 0.45);
}

.topline-biz-resources-widget .biz-res-cta .biz-res-cta__btn svg,
.biz-res-cta .biz-res-cta__btn svg,
.biz-res-cta__btn svg {
    transition: transform 0.2s ease;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.biz-res-cta__btn:hover svg {
    transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .biz-res-intro,
    .biz-res-features,
    .biz-res-steps,
    .biz-res-benefits,
    .biz-res-app-links {
        padding-left: 16px;
        padding-right: 16px;
    }

    .biz-res-cta {
        padding: 64px 20px 80px;
    }

    .topline-biz-resources-widget .biz-res-cta .biz-res-cta__title,
    .biz-res-cta .biz-res-cta__title,
    h2.biz-res-cta__title {
        font-size: 32px !important;
    }

    .biz-res-feature-card {
        padding: 24px 20px;
    }

    .biz-res-step {
        padding: 20px;
        gap: 16px;
    }

    .biz-res-cta__contact {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .topline-biz-resources-widget .biz-res-cta .biz-res-cta__btn,
    .biz-res-cta .biz-res-cta__btn,
    .biz-res-cta__btn {
        padding: 14px 28px !important;
        font-size: 0.9375rem !important;
    }
}
