/* ==========================================================================
   chc-intro.css
   Styles for about-chc.html — Maryland Clean Heat Credit page
   Theme: white + CHC forest green (#538135)
   FE primary teal (#1EA99B) used in CHC Manager services section
   ========================================================================== */

.chc-page {
    /* CHC content palette */
    --chc-green: #538135;
    --chc-green-deep: #3d6126;
    --chc-green-light: #6aaa42;
    --chc-green-soft: #8dc460;
    --chc-green-mist: #f3f7ee;
    --chc-green-tint: #e8f0df;

    /* FE brand palette (used in CHC Manager section) */
    --chc-fe-green: #1EA99B;
    --chc-fe-green-deep: #006168;
    --chc-fe-green-dark: #035E5E;
    --chc-fe-green-mist: #e8f7f6;
    --chc-fe-green-tint: #d0eeec;

    /* Neutrals */
    --chc-ink: #1a2317;
    --chc-ink-soft: #4a5544;
    --chc-ink-mute: #76806f;
    --chc-paper: #ffffff;
    --chc-paper-warm: #fafaf7;
    --chc-rule-color: #e3e6df;

    background: var(--chc-paper);
    color: var(--chc-ink);
    font-family: 'Open Sans', -apple-system, sans-serif;
    line-height: 1.7;
}

.chc-page * { box-sizing: border-box; }

.chc-page a { color: var(--chc-green); text-decoration: none; }
.chc-page a:hover { color: var(--chc-green-deep); text-decoration: underline; }

/* ==========================================================================
   Shared labels & rules
   ========================================================================== */

.chc-page .chc-section-label {
    display: inline-block;
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--chc-green);
    margin-bottom: 14px;
}

.chc-page .chc-section-label.fe-accent {
    color: var(--chc-fe-green);
}

.chc-page .chc-rule {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--chc-green), var(--chc-green-soft));
    border-radius: 2px;
    margin-bottom: 28px;
}

.chc-page .chc-rule.fe-accent {
    background: linear-gradient(90deg, var(--chc-fe-green-deep), var(--chc-fe-green));
}

/* ==========================================================================
   Hero — reversed two-column layout (visual left, content right)
   ========================================================================== */

.chc-page .chc-hero {
    background: linear-gradient(180deg, var(--chc-green-mist) 0%, var(--chc-paper) 100%);
    padding: 70px 40px 80px;
    position: relative;
    border-bottom: 1px solid var(--chc-rule-color);
}

.chc-page .chc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--chc-green) 0%, var(--chc-green-soft) 50%, var(--chc-green) 100%);
}

.chc-page .chc-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.chc-page .chc-hero-content .chc-hero-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--chc-ink);
    letter-spacing: -0.015em;
    margin: 0 0 22px;
}

.chc-page .chc-hero-content .chc-hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--chc-ink-soft);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 300;
}

.chc-page .chc-hero-content p {
    font-size: 1rem;
    color: var(--chc-ink-soft);
    line-height: 1.75;
    margin-bottom: 16px;
}

.chc-page .chc-hero-content p strong {
    color: var(--chc-ink);
    font-weight: 600;
}

/* Hero visual panel (graphic-benefits) */
.chc-page .chc-graphic-benefits {
    background: white;
    border: 1px solid var(--chc-rule-color);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px -20px rgba(83, 129, 53, 0.18);
    position: relative;
}

.chc-page .chc-graphic-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--chc-green), var(--chc-green-soft));
    border-radius: 16px 16px 0 0;
}

.chc-page .chc-benefits-headline {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--chc-ink);
    margin-bottom: 22px;
    letter-spacing: -0.005em;
}

.chc-page .chc-benefits-headline span {
    color: var(--chc-green);
    display: block;
}

.chc-page .chc-benefits-list {
    margin-bottom: 26px;
}

.chc-page .chc-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 0.95rem;
    color: var(--chc-ink-soft);
    border-bottom: 1px solid var(--chc-rule-color);
}

.chc-page .chc-benefit-item:last-child {
    border-bottom: none;
}

.chc-page .chc-benefit-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--chc-green);
}

/* Formula badge inside hero panel */
.chc-page .chc-formula-badge {
    background: linear-gradient(135deg, var(--chc-green) 0%, var(--chc-green-light) 100%);
    color: white;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.chc-page .chc-formula-badge-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.chc-page .chc-formula-badge-amount {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.chc-page .chc-formula-badge-note {
    font-size: 0.78rem;
    color: var(--chc-ink-mute);
    line-height: 1.5;
    margin-top: 12px;
    font-style: italic;
}

/* ==========================================================================
   Shortcut box — italic eligibility callout overlapping the hero/section seam
   ========================================================================== */

.chc-page .chc-shortcut-box {
    max-width: 1240px;
    margin: -30px auto 0;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.chc-page .chc-shortcut-box-inner {
    background: white;
    border: 1px solid var(--chc-rule-color);
    border-left: 4px solid var(--chc-green-soft);
    border-radius: 10px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.06);
}

.chc-page .chc-shortcut-icon-small {
    width: 44px;
    height: 44px;
    background: var(--chc-green-mist);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--chc-green);
}

.chc-page .chc-shortcut-icon-small svg {
    width: 22px;
    height: 22px;
}

.chc-page .chc-shortcut-content-compact h4 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--chc-ink);
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}

.chc-page .chc-shortcut-content-compact p {
    font-size: 0.95rem;
    color: var(--chc-ink-soft);
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

.chc-page .chc-shortcut-content-compact p strong {
    font-style: normal;
    color: var(--chc-green-deep);
}

/* ==========================================================================
   Standard content sections (MD Standard, LMI, etc.)
   ========================================================================== */

.chc-page .chc-section {
    padding: 80px 40px 60px;
}

.chc-page .chc-section.chc-section-tight-top {
    padding-top: 0;
}

.chc-page .chc-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.chc-page .chc-section-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--chc-ink);
    letter-spacing: -0.01em;
    margin: 0 0 28px;
    max-width: 900px;
}


.chc-page .chc-section-title span {
    color: var(--chc-green);
}

.chc-page .chc-section p {
    font-size: 1rem;
    color: var(--chc-ink-soft);
    line-height: 1.8;
    margin-bottom: 18px;
    max-width: 900px;
}

.chc-page .chc-section p strong {
    color: var(--chc-ink);
    font-weight: 600;
}

/* ==========================================================================
   Footnote markers + always-visible source citations
   ========================================================================== */

.chc-page .chc-fn-mark {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--chc-green);
    margin-left: 2px;
    padding: 0 3px;
    vertical-align: super;
    line-height: 1;
}

.chc-page .chc-fn-mark.fe-accent {
    color: var(--chc-fe-green);
}

.chc-page .chc-fn-mark-light {
    color: rgba(255, 255, 255, 0.85);
}

.chc-page .chc-source-cite {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0 10px 16px;
    margin: -6px 0 24px;
    border-left: 2px solid var(--chc-green-tint);
    font-size: 0.8rem;
    color: var(--chc-ink-mute);
    line-height: 1.55;
    font-style: italic;
    max-width: 820px;
}

.chc-page .chc-source-num {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    color: var(--chc-green);
    font-style: normal;
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1;
    padding-top: 1px;
}

.chc-page .chc-source-num.fe-accent {
    color: var(--chc-fe-green);
}

.chc-page .chc-source-text {
    flex: 1;
}

/* ==========================================================================
   Formula highlight (big version inside MD Standard section)
   ========================================================================== */

.chc-page .chc-formula-big {
    margin: 30px 0 12px;
    background: linear-gradient(135deg, var(--chc-green) 0%, var(--chc-green-light) 100%);
    color: white;
    border-radius: 14px;
    padding: 36px 42px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 14px 40px -12px rgba(83, 129, 53, 0.4);
    max-width: 900px;
}

.chc-page .chc-formula-eq {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    padding-right: 36px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.chc-page .chc-formula-eq-light {
    font-weight: 300;
    margin: 0 12px;
    opacity: 0.85;
}

.chc-page .chc-formula-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* ==========================================================================
   Alternative-option-box (LMI carve-out callout)
   ========================================================================== */

.chc-page .chc-alternative-option-box {
    background: var(--chc-green-mist);
    border: 1px solid var(--chc-green-tint);
    border-left: 4px solid var(--chc-green);
    border-radius: 0 12px 12px 0;
    padding: 32px 38px;
    margin-top: 12px;
    margin-bottom: 12px;
    max-width: 900px;
}

.chc-page .chc-alternative-option-box h3 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--chc-green-deep);
    margin: 0 0 12px;
    letter-spacing: -0.005em;
}

.chc-page .chc-alternative-option-box p {
    font-size: 1rem;
    color: var(--chc-ink);
    line-height: 1.75;
    margin: 0;
    max-width: none;
}

.chc-page .chc-alternative-option-box p strong {
    color: var(--chc-green-deep);
    font-weight: 700;
}

/* ==========================================================================
   Eligible measures — simple vertical list
   ========================================================================== */

.chc-page .chc-measures-section {
    padding: 60px 40px 70px;
    background: var(--chc-paper-warm);
    border-top: 1px solid var(--chc-rule-color);
    border-bottom: 1px solid var(--chc-rule-color);
}

.chc-page .chc-measures-header {
    max-width: 1100px;
    margin: 0 auto 36px;
}

.chc-page .chc-measures-list {
    max-width: 1100px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chc-page .chc-measures-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--chc-rule-color);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.02rem;
    color: var(--chc-ink);
    line-height: 1.4;
}

.chc-page .chc-measures-list li:last-child {
    border-bottom: none;
}

.chc-page .chc-measures-list li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--chc-green);
    color: var(--chc-green);
}

.chc-page .chc-measures-list li em {
    font-style: italic;
    color: var(--chc-ink-mute);
    font-weight: 400;
    margin-left: 4px;
    font-size: 0.92rem;
}

/* ==========================================================================
   FLETT EXCHANGE CHC MANAGER section — uses FE primary teal accent
   ========================================================================== */

.chc-page .chc-services-section {
    padding: 70px 40px 100px;
    background: var(--chc-fe-green-mist);
    border-top: 1px solid var(--chc-fe-green-tint);
    position: relative;
}

.chc-page .chc-services-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--chc-fe-green-deep) 0%, var(--chc-fe-green) 50%, var(--chc-fe-green-deep) 100%);
}

.chc-page .chc-services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.chc-page .chc-services-header .chc-rule {
    margin: 0 auto 20px;
}

.chc-page .chc-services-header h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    color: var(--chc-fe-green-deep);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.chc-page .chc-services-intro {
    color: var(--chc-ink-soft);
    line-height: 1.7;
    font-size: 1.02rem;
    margin: 0;
}


.chc-page .chc-services-footer {
    max-width: 900px;
    margin: 20px auto 0;
}

.chc-page .chc-services-summary {
    font-size: 1rem;
    color: var(--chc-ink);
    line-height: 1.75;
    text-align: center;
    margin-bottom: 22px;
}

.chc-page .chc-services-summary strong {
    color: var(--chc-fe-green-deep);
    font-weight: 700;
    font-style: normal;
}

/* FE-accent variant of source-cite (used in services footer) */
.chc-page .chc-services-footer .chc-source-cite {
    border-left-color: var(--chc-fe-green-tint);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .chc-page .chc-hero {
        padding: 50px 24px 70px;
    }
    .chc-page .chc-hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .chc-page .chc-shortcut-box {
        padding: 0 24px;
    }
    .chc-page .chc-shortcut-box-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .chc-page .chc-section,
    .chc-page .chc-measures-section,
    .chc-page .chc-services-section {
        padding: 60px 24px;
    }
    .chc-page .chc-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .chc-page .chc-formula-big {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px;
    }
    .chc-page .chc-formula-eq {
        padding-right: 0;
        padding-bottom: 18px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        text-align: center;
    }
}

@media (max-width: 560px) {
    .chc-page .chc-formula-eq {
        font-size: 1.8rem;
    }
    .chc-page .chc-alternative-option-box {
        padding: 24px 22px;
    }
    .chc-page .chc-graphic-benefits {
        padding: 28px 22px;
    }
    .chc-page .chc-service-card {
        padding: 26px 22px;
    }
}

/* ==========================================================================
   Interest Form
   ========================================================================== */

.chc-page .chc-interest-section {
    background: var(--chc-paper-warm);
    border-top: 1px solid var(--chc-rule-color);
    padding: 70px 40px 80px;
}

.chc-page .chc-interest-intro {
    font-size: 1rem;
    color: var(--chc-ink-soft);
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 36px;
}

.chc-page .chc-interest-form {
    max-width: 680px;
}

.chc-page .chc-interest-row {
    margin-bottom: 20px;
}

.chc-page .chc-interest-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chc-page .chc-interest-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chc-page .chc-interest-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--chc-ink-soft);
    letter-spacing: 0.02em;
}

.chc-page .chc-interest-req {
    color: var(--chc-green);
}

.chc-page .chc-interest-optional {
    font-weight: 400;
    color: var(--chc-ink-mute);
    font-size: 0.8rem;
}

.chc-page .chc-interest-field input,
.chc-page .chc-interest-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--chc-rule-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--chc-ink);
    background: var(--chc-paper);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
}

.chc-page .chc-interest-field input:focus,
.chc-page .chc-interest-field textarea:focus {
    border-color: var(--chc-green);
    box-shadow: 0 0 0 3px rgba(83, 129, 53, 0.12);
}

.chc-page .chc-interest-field textarea {
    resize: vertical;
    min-height: 110px;
}

.chc-page .chc-interest-error {
    font-size: 0.8rem;
    color: #c0392b;
}

.chc-page .chc-interest-actions {
    margin-top: 8px;
}

.chc-page .chc-interest-submit {
    display: inline-block;
    background: var(--chc-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.chc-page .chc-interest-submit:hover {
    background: var(--chc-green-deep);
    transform: translateY(-1px);
}

/* Success state */
.chc-page .chc-interest-success {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--chc-green-mist);
    border: 1px solid var(--chc-green-tint);
    border-left: 4px solid var(--chc-green);
    border-radius: 8px;
    padding: 22px 26px;
    max-width: 500px;
}

.chc-page .chc-interest-success svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke: var(--chc-green);
}

.chc-page .chc-interest-success p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--chc-green-deep);
}

@media (max-width: 680px) {
    .chc-page .chc-interest-section {
        padding: 50px 20px 60px;
    }

    .chc-page .chc-interest-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Measures list inside hero content column — needs vertical breathing room
   ========================================================================== */

.chc-page .chc-measures-list--hero {
    margin: 18px 0 22px;
    max-width: none; /* fill the hero content column width */
}

/* ==========================================================================
   Interest form housed inside chc-services-section — white card panel
   ========================================================================== */

.chc-page .chc-interest-wrap {
    margin-top: 50px;
    background: var(--chc-paper);
    border: 1px solid var(--chc-fe-green-tint);
    border-radius: 14px;
    padding: 44px 48px;
    box-shadow: 0 8px 24px -8px rgba(0, 97, 104, 0.12);
}

@media (max-width: 680px) {
    .chc-page .chc-interest-wrap {
        padding: 28px 22px;
        margin-top: 36px;
    }
}