/**
 * EVContractors.io — Homepage Sections 3–8 Stylesheet
 * File: evc-homepage-sections.css
 * Location: /wp-content/themes/generatepress-child/css/
 *
 * Enqueued conditionally on the front page via functions-homepage.php.
 * Depends on evc-homepage.css being loaded first (base variables & hero/trust bar).
 *
 * Design system:
 *   Primary:    #1a3a2a (deep forest green)
 *   Accent:     #4ecdc4 (teal)
 *   Success:    #27ae60
 *   Navy:       #0f172a
 *   Background: #f5f7f6
 *   Card:       #ffffff
 *   Text:       #1a1a2e
 *   Muted:      #6b7280
 *   Border:     #e8ebe9
 *
 *   Fonts: Plus Jakarta Sans (body), Barlow Condensed (headings)
 */


/* ════════════════════════════════════════════
   HERO CTA BUTTONS (replaces search form)
   ════════════════════════════════════════════ */

.evc-hero__cta-wrap {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.evc-hero__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.evc-hero__cta-btn--primary {
    background: #27ae60;
    color: #fff;
}

.evc-hero__cta-btn--primary:hover {
    background: #2ecc71;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.evc-hero__cta-btn--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.evc-hero__cta-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 599px) {
    .evc-hero__cta-wrap {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .evc-hero__cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 0.95rem;
        padding: 14px 24px;
    }
}


/* ════════════════════════════════════════════
   SHARED: SECTION HEADER PATTERN
   ════════════════════════════════════════════ */

.evc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.evc-section-header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.evc-section-header__eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4ecdc4;
    margin: 0 0 8px;
}

.evc-section-header__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.15;
    margin: 0 0 8px;
}

.evc-section-header__sub {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
    max-width: 540px;
    line-height: 1.5;
}

.evc-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a3a2a;
    white-space: nowrap;
    transition: color 0.15s ease;
    flex-shrink: 0;
    margin-top: 8px;
}

.evc-section-header__link:hover {
    color: #4ecdc4;
}


/* ════════════════════════════════════════════
   SHARED: BUTTONS
   ════════════════════════════════════════════ */

.evc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.evc-btn--primary {
    background: #1a3a2a;
    color: #fff;
    padding: 14px 28px;
    font-size: 0.95rem;
}

.evc-btn--primary:hover {
    background: #2a5a3a;
    color: #fff;
}

.evc-btn--sm {
    padding: 8px 16px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.evc-btn--secondary {
    background: transparent;
    color: #1a3a2a;
    border: 1.5px solid #e8ebe9;
}

.evc-btn--secondary:hover {
    border-color: #1a3a2a;
    color: #1a3a2a;
}

.evc-btn--cta-green {
    background: #27ae60;
    color: #fff;
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.evc-btn--cta-green:hover {
    background: #2ecc71;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}


/* ════════════════════════════════════════════
   SHARED: TAGS / BADGES
   ════════════════════════════════════════════ */

.evc-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.4;
}

.evc-tag--cert {
    background: rgba(78, 205, 196, 0.12);
    color: #0d7a73;
}

.evc-tag--project {
    background: #f0f1f3;
    color: #4b5563;
}


/* ════════════════════════════════════════════
   SECTION 3: FEATURED INSTALLER CARDS
   ════════════════════════════════════════════ */

.evc-featured {
    padding: 80px 0;
    background: #fff;
}

.evc-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.evc-featured__empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.evc-featured__empty-icon {
    color: #9ca3af;
    margin-bottom: 16px;
}

.evc-featured__empty-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.evc-featured__empty-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.evc-featured__empty-text a {
    color: #1a3a2a;
    font-weight: 600;
    text-decoration: underline;
}


/* ── Homepage Installer Card ──────────────── */

.evc-hp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ebe9;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.evc-hp-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border-color: #d1d5db;
}

.evc-hp-card--featured {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 1px rgba(78, 205, 196, 0.2);
}

.evc-hp-card__featured-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.02em;
}

.evc-hp-card__logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.evc-hp-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.evc-hp-card__logo-placeholder {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #6b7280;
}

.evc-hp-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evc-hp-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.evc-hp-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.evc-hp-card__name a {
    color: #1a1a2e;
    text-decoration: none;
}

.evc-hp-card__name a:hover {
    color: #4ecdc4;
}

.evc-hp-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.evc-hp-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.evc-hp-card__ctas {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.evc-hp-card__ctas .evc-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
}


/* ════════════════════════════════════════════
   SECTION 4: HOW IT WORKS
   ════════════════════════════════════════════ */

.evc-how-it-works {
    padding: 80px 0;
    background: #f5f7f6;
}

.evc-hiw__grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.evc-hiw__step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 20px;
}

.evc-hiw__icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ebe9;
}

.evc-hiw__step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #1a3a2a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.evc-hiw__icon {
    color: #1a3a2a;
}

.evc-hiw__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.evc-hiw__desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}

.evc-hiw__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    flex-shrink: 0;
    padding-top: 30px;
}


/* ════════════════════════════════════════════
   SECTION 5: TRUST SIGNALS DEEP DIVE
   ════════════════════════════════════════════ */

.evc-trust-deep {
    padding: 80px 0;
    background: #fff;
}

.evc-trust-deep__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.evc-trust-deep__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.15;
    margin: 0 0 16px;
}

.evc-trust-deep__lead {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 12px;
}

.evc-trust-deep__body {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

.evc-trust-deep__checklist-wrap {
    display: flex;
    justify-content: center;
}

.evc-trust-deep__checklist-card {
    background: #f9fafb;
    border: 1px solid #e8ebe9;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
}

.evc-trust-deep__checklist-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.evc-trust-deep__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.evc-trust-deep__check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.4;
}

.evc-trust-deep__check-icon {
    flex-shrink: 0;
}


/* ── Certification Strip ──────────────────── */

.evc-cert-strip {
    margin-top: 56px;
    text-align: center;
}

.evc-cert-strip__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 20px;
}

.evc-cert-strip__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.evc-cert-strip__logo {
    color: #6b7280;
    transition: opacity 0.2s ease;
}

.evc-cert-strip__logo:hover {
    opacity: 1;
}


/* ════════════════════════════════════════════
   SECTION 6: LATEST GUIDES & RESOURCES
   ════════════════════════════════════════════ */

.evc-guides {
    padding: 80px 0;
    background: #f5f7f6;
}

.evc-guides__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.evc-guides__empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    font-size: 0.95rem;
}


/* ── Guide Card ───────────────────────────── */

.evc-guide-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ebe9;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.evc-guide-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.evc-guide-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8ebe9;
}

.evc-guide-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evc-guide-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f1f3;
    color: #9ca3af;
}

.evc-guide-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.evc-guide-card__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4ecdc4;
    margin-bottom: 8px;
}

.evc-guide-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evc-guide-card__title a {
    color: #1a1a2e;
    text-decoration: none;
}

.evc-guide-card__title a:hover {
    color: #4ecdc4;
}

.evc-guide-card__excerpt {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}

.evc-guide-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
}

.evc-guide-card__read-time {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
}

.evc-guide-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a3a2a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.evc-guide-card__cta:hover {
    color: #4ecdc4;
}


/* ════════════════════════════════════════════
   SECTION 7: CONTRACTOR CTA BAND
   ════════════════════════════════════════════ */

.evc-contractor-cta {
    padding: 80px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.evc-contractor-cta::before,
.evc-contractor-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.evc-contractor-cta::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4ecdc4, transparent 70%);
    top: -120px;
    right: -80px;
}

.evc-contractor-cta::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #27ae60, transparent 70%);
    bottom: -100px;
    left: -60px;
}

.evc-contractor-cta__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.evc-contractor-cta__headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
}

.evc-contractor-cta__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 32px;
}

.evc-contractor-cta__founding {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 16px 0 0;
}


/* ════════════════════════════════════════════
   SECTION 8: SITE FOOTER
   ════════════════════════════════════════════ */

.evc-site-footer {
    padding: 56px 0 0;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.evc-site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.evc-site-footer__logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.evc-site-footer__logo:hover {
    color: #4ecdc4;
}

.evc-site-footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
}

.evc-site-footer__heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
}

.evc-site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evc-site-footer__links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.evc-site-footer__links a:hover {
    color: #4ecdc4;
}

.evc-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.evc-site-footer__copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.evc-site-footer__legal {
    display: flex;
    gap: 24px;
}

.evc-site-footer__legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.15s ease;
}

.evc-site-footer__legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}


/* ════════════════════════════════════════════
   RESPONSIVE: TABLET (≤ 899px)
   ════════════════════════════════════════════ */

@media (max-width: 899px) {

    .evc-section-header {
        flex-direction: column;
        gap: 12px;
    }

    .evc-section-header__title {
        font-size: 1.7rem;
    }

    /* Featured grid → 2 columns */
    .evc-featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* How It Works → stack vertical */
    .evc-hiw__grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .evc-hiw__connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    /* Trust deep dive → stack */
    .evc-trust-deep__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .evc-trust-deep__checklist-card {
        max-width: 100%;
    }

    /* Guides grid → 2 columns */
    .evc-guides__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer → 2 columns */
    .evc-site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .evc-site-footer__col--brand {
        grid-column: 1 / -1;
    }
}


/* ════════════════════════════════════════════
   RESPONSIVE: MOBILE (≤ 599px)
   ════════════════════════════════════════════ */

@media (max-width: 599px) {

    .evc-featured,
    .evc-how-it-works,
    .evc-trust-deep,
    .evc-guides,
    .evc-contractor-cta {
        padding: 48px 0;
    }

    .evc-section-header {
        margin-bottom: 28px;
    }

    .evc-section-header__title {
        font-size: 1.45rem;
    }

    /* Featured → 1 column */
    .evc-featured__grid {
        grid-template-columns: 1fr;
    }

    /* Guides → 1 column */
    .evc-guides__grid {
        grid-template-columns: 1fr;
    }

    /* Trust deep dive title */
    .evc-trust-deep__title {
        font-size: 1.6rem;
    }

    /* CTA band */
    .evc-contractor-cta__headline {
        font-size: 1.7rem;
    }

    /* Footer → single column */
    .evc-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .evc-site-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .evc-site-footer__legal {
        justify-content: center;
    }
/* Request a Quote CTA button in nav */
#menu-item-6123 > a {
  background-color: #2d7a3a !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease;
}

#menu-item-6123 > a:hover {
  background-color: #236b2f !important;
  color: #ffffff !important;
}