/*
 * SMI Public Website — Elegant Color System R2
 * Recommended palette: Executive Emerald + Warm Sand + Antique Brass.
 * Loaded after smi-public-v2.css so no HTML structure changes are required.
 */
:root {
    --smi-green-950: #173b36;
    --smi-green-900: #1f4e47;
    --smi-green-800: #2b665d;
    --smi-green-700: #3a7a6f;
    --smi-green-500: #6c9a8e;
    --smi-sage-100: #e7eee9;
    --smi-sage-50: #f4f6f2;
    --smi-ivory: #f8f4ec;
    --smi-gold: #b8914e;
    --smi-gold-soft: #e4d3ae;
    --smi-ink: #202a27;
    --smi-muted: #68726e;
    --smi-white: #ffffff;
    --smi-border: rgba(31, 78, 71, .13);
    --smi-shadow: 0 22px 55px rgba(26, 53, 48, .10);
    --smi-radius-lg: 24px;
    --smi-radius-md: 18px;
    --smi-radius-sm: 12px;
}

body.smi-public-page {
    color: var(--smi-ink);
    background: #fbfaf7;
}

/* Header: quieter and more premium. */
.smi-public-header {
    background: rgba(251, 250, 247, .90);
    border-bottom-color: rgba(31, 78, 71, .08);
}
.smi-public-header.is-scrolled {
    background: rgba(251, 250, 247, .98);
    box-shadow: 0 12px 34px rgba(25, 51, 46, .075);
}
.smi-public-brand,
.smi-public-brand-copy strong { color: var(--smi-green-950); }
.smi-public-brand-copy small { color: #727b77; }
.smi-public-nav-list > li > a { color: #2c3733; }
.smi-public-nav-list > li > a:hover,
.smi-public-nav-list > li > a:focus-visible {
    color: var(--smi-green-800);
    background: rgba(108, 154, 142, .12);
}
.smi-public-nav-list > li.is-button > a {
    color: #fff;
    background: var(--smi-green-900);
    box-shadow: 0 8px 20px rgba(31, 78, 71, .16);
}
.smi-public-nav-list > li.is-button > a:hover {
    color: #fff;
    background: var(--smi-green-800);
}
.smi-public-submenu {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 50px rgba(23, 59, 54, .12);
}
.smi-public-menu-toggle { background: var(--smi-green-900); }

/* Hero: less black, warmer accent, clearer hierarchy. */
.smi-hero { background: #173b36; }
.smi-hero::before {
    background: linear-gradient(90deg,
        rgba(17, 45, 41, .95) 0%,
        rgba(23, 59, 54, .82) 45%,
        rgba(23, 59, 54, .28) 100%);
}
.smi-hero-overlay-soft::before {
    background: linear-gradient(90deg, rgba(17, 45, 41, .84), rgba(23, 59, 54, .22));
}
.smi-hero::after {
    background: radial-gradient(circle, rgba(184, 145, 78, .20), transparent 66%);
}
.smi-hero-eyebrow { color: #eadfc8; }
.smi-hero-copy > p { color: rgba(255, 255, 255, .80); }
.smi-hero-trust { color: rgba(255, 255, 255, .72); }
.smi-hero-trust i { color: #d3b778; }

/* Buttons use antique brass sparingly. */
.smi-btn {
    border-radius: 12px;
    box-shadow: none;
}
.smi-btn-primary {
    background: var(--smi-green-900);
    box-shadow: 0 10px 24px rgba(31, 78, 71, .18);
}
.smi-btn-primary:hover { background: var(--smi-green-800); }
.smi-btn-gold {
    color: #27312d;
    background: #d2b274;
    box-shadow: 0 12px 26px rgba(184, 145, 78, .18);
}
.smi-btn-gold:hover { color: #27312d; background: #e0c896; }
.smi-btn-outline-light {
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .045);
}

/* Section colors: alternating neutral surfaces, only two dark sections. */
.smi-journey-section { background: linear-gradient(180deg, #fbfaf7 0%, #f2f5f1 100%); }
.smi-why-section { background: #f5f0e7; }
.smi-impact-section { background: #173b36; }
.smi-framework-section { background: #fbfaf7; }
.smi-programs-section { background: #eef2ef; }
.smi-stories-section { background: #f8f4ec; }
.smi-resources-section { background: #ffffff; }
.smi-partners-section { background: #f1f3f0; }
.smi-final-cta { background: #ffffff; }
.smi-consultation-section { background: #f6f2ea; }

/* Heading theme correction: light surfaces must never inherit white headings. */
.smi-section-heading-light h2,
.smi-framework-section .smi-section-heading h2,
.smi-programs-section .smi-section-heading h2,
.smi-stories-section .smi-section-heading h2,
.smi-resources-section .smi-section-heading h2,
.smi-partners-section .smi-section-heading h2,
.smi-consultation-section .smi-section-heading h2 {
    color: var(--smi-green-950) !important;
}
.smi-section-heading-light p,
.smi-framework-section .smi-section-heading p,
.smi-programs-section .smi-section-heading p,
.smi-stories-section .smi-section-heading p,
.smi-resources-section .smi-section-heading p,
.smi-partners-section .smi-section-heading p,
.smi-consultation-section .smi-section-heading p {
    color: var(--smi-muted) !important;
}
.smi-section-heading-light .smi-section-eyebrow,
.smi-framework-section .smi-section-heading .smi-section-eyebrow,
.smi-programs-section .smi-section-heading .smi-section-eyebrow,
.smi-stories-section .smi-section-heading .smi-section-eyebrow,
.smi-resources-section .smi-section-heading .smi-section-eyebrow,
.smi-partners-section .smi-section-heading .smi-section-eyebrow,
.smi-consultation-section .smi-section-heading .smi-section-eyebrow {
    color: var(--smi-green-700) !important;
}
.smi-impact-section .smi-section-heading h2 { color: #ffffff !important; }
.smi-impact-section .smi-section-heading p { color: rgba(255,255,255,.68) !important; }
.smi-impact-section .smi-section-heading .smi-section-eyebrow { color: #ddc795 !important; }

/* Cards: flatter, restrained shadow and cleaner borders. */
.smi-journey-card,
.smi-program-card,
.smi-story-card,
.smi-resource-card,
.smi-partner-card,
.smi-feature-item,
.smi-consultation-card {
    border-color: rgba(31, 78, 71, .11);
    box-shadow: 0 10px 30px rgba(24, 55, 49, .055);
}
.smi-journey-card:hover,
.smi-program-card:hover,
.smi-story-card:hover,
.smi-resource-card:hover {
    border-color: rgba(58, 122, 111, .28);
    box-shadow: 0 20px 50px rgba(24, 55, 49, .11);
}
.smi-card-icon {
    color: var(--smi-green-800);
    background: #e7eee9;
}
.smi-card-number { color: rgba(31, 78, 71, .07); }
.smi-journey-card h3,
.smi-program-body h3,
.smi-story-body h3,
.smi-resource-card h3,
.smi-feature-item h3 { color: var(--smi-green-950); }
.smi-journey-card a,
.smi-text-link,
.smi-resource-card a { color: var(--smi-green-800); }

.smi-why-quote {
    color: var(--smi-green-950);
    background: rgba(184, 145, 78, .10);
    border-color: rgba(184, 145, 78, .25);
}
.smi-why-quote i,
.smi-story-body > i { color: var(--smi-gold); }

.smi-impact-section::before {
    background: radial-gradient(circle, rgba(108, 154, 142, .20), transparent 68%);
}
.smi-impact-card {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .105);
}
.smi-impact-card > i { color: #d6bd86; }
.smi-impact-card h3 { color: #eadfc8; }

.smi-framework-track::before {
    background: linear-gradient(90deg, #6c9a8e, #c4a568);
}
.smi-framework-step > span {
    background: var(--smi-green-900);
    border-color: #fbfaf7;
    box-shadow: 0 0 0 1px rgba(31, 78, 71, .12), 0 10px 22px rgba(25, 55, 49, .11);
}
.smi-framework-step h3 { color: var(--smi-green-900); }
.smi-program-media > span {
    background: rgba(23, 59, 54, .88);
    color: #f3ede1;
}

.smi-partner-card { background: rgba(255, 255, 255, .82); }
.smi-partner-card strong { color: var(--smi-green-900); }

.smi-final-cta-card {
    background: linear-gradient(135deg, #173b36 0%, #285c54 100%);
    box-shadow: 0 24px 60px rgba(23, 59, 54, .16);
}
.smi-final-cta-card .smi-section-eyebrow { color: #ddc795; }
.smi-final-cta-card p { color: rgba(255,255,255,.72); }

.smi-consultation-form .form-control,
.smi-consultation-form .form-select {
    background: #f7f8f5;
    border-color: rgba(31, 78, 71, .14);
}
.smi-consultation-form .form-control:focus,
.smi-consultation-form .form-select:focus {
    border-color: #6c9a8e;
    box-shadow: 0 0 0 .2rem rgba(108, 154, 142, .13);
}

.smi-public-footer { background: #132f2b; }
.smi-social-links a:hover {
    color: #27312d;
    background: #d2b274;
}
.smi-footer-contact i { color: #d3b778; }
.smi-footer-column a:hover,
.smi-footer-contact a:hover,
.smi-public-footer-bottom a { color: #e4d3ae; }

.smi-whatsapp-float { background: #237a55; }
.smi-consultation-float { color: #27312d; background: #d2b274; }
.smi-scroll-top { background: var(--smi-green-900); }

@media (max-width: 991px) {
    .smi-public-nav { background: #fbfaf7; }
    .smi-hero::before {
        background: linear-gradient(90deg, rgba(17, 45, 41, .94), rgba(23, 59, 54, .62));
    }
}
