/*
 * KMGMission Main — Canonical Public Pages
 *
 * Scope:
 *   Canonical informational/public pages only.
 *
 * Deliberately does NOT target:
 *   .kmgm-home-*
 *   .kmgm-newsletter-*
 *   application forms
 *   site header/navigation/footer
 *
 * Version: 1.0.0
 */

/* ----------------------------------------------------------
   TOKENS — scoped to canonical public page wrappers
   ---------------------------------------------------------- */

.kmgm-public-page,
.kmgm-page-hero,
.kmgm-section,
.kmgm-cta,
.kmgm-program-page,
.kmgm-pillar-page {
    --kp-navy-950:#071426;
    --kp-navy-900:#0b1f3a;
    --kp-navy-800:#12345b;
    --kp-blue:#1d5ca8;
    --kp-gold:#d5a72d;
    --kp-gold-soft:#f0d787;
    --kp-white:#ffffff;
    --kp-surface:#f6f8fb;
    --kp-cream:#fbf8f0;
    --kp-text:#172235;
    --kp-muted:#5e6b7c;
    --kp-border:#dce3eb;
    --kp-radius:16px;
    --kp-radius-lg:26px;
    --kp-shadow:0 12px 34px rgba(7,20,38,.08);
}


/* ----------------------------------------------------------
   GENERATION 1 / 2
   kmgm-public-* canonical pages
   ---------------------------------------------------------- */

.kmgm-public-page {
    color:var(--kp-text);
    background:#fff;
}

.kmgm-public-page *,
.kmgm-public-page *::before,
.kmgm-public-page *::after {
    box-sizing:border-box;
}

.kmgm-public-page .kmgm-public-hero {
    padding:clamp(82px,10vw,138px) 0;
    color:#fff;
    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(213,167,45,.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--kp-navy-950),
            var(--kp-navy-800)
        );
}

.kmgm-public-page .kmgm-public-hero h1 {
    max-width:920px;
    margin:0 0 24px;
    color:#fff;
    font-size:clamp(2.6rem,6vw,5.2rem);
    line-height:1.02;
    letter-spacing:-.035em;
}

.kmgm-public-page .kmgm-public-eyebrow,
.kmgm-public-page > .kmgm-eyebrow,
.kmgm-public-page .kmgm-public-section > .kmgm-eyebrow {
    margin:0 0 16px;
    color:#a77b1e;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.kmgm-public-page .kmgm-public-hero .kmgm-public-eyebrow,
.kmgm-public-page .kmgm-public-hero .kmgm-eyebrow {
    color:var(--kp-gold-soft);
}

.kmgm-public-page .kmgm-public-lead,
.kmgm-public-page .kmgm-public-hero .kmgm-lead {
    max-width:780px;
    margin:0;
    color:rgba(255,255,255,.80);
    font-size:clamp(1.05rem,1.8vw,1.28rem);
    line-height:1.75;
}

.kmgm-public-page .kmgm-public-section {
    padding:clamp(62px,8vw,104px) max(20px,calc((100% - 1180px)/2));
}

.kmgm-public-page .kmgm-public-section:nth-of-type(odd) {
    background:var(--kp-surface);
}

.kmgm-public-page .kmgm-public-section h2 {
    max-width:850px;
    margin:0 0 20px;
    color:var(--kp-navy-950);
    font-size:clamp(2rem,4vw,3.25rem);
    line-height:1.1;
    letter-spacing:-.025em;
}

.kmgm-public-page .kmgm-public-section p {
    color:var(--kp-muted);
    line-height:1.75;
}

.kmgm-public-page .kmgm-public-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    margin-top:36px;
}

.kmgm-public-page .kmgm-public-card {
    padding:30px;
    border:1px solid var(--kp-border);
    border-radius:var(--kp-radius);
    background:#fff;
    box-shadow:var(--kp-shadow);
}

.kmgm-public-page .kmgm-public-card h3 {
    margin:0 0 12px;
    color:var(--kp-navy-950);
    font-size:1.25rem;
}

.kmgm-public-page .kmgm-public-card p:last-child {
    margin-bottom:0;
}


/* Generic classes used inside generation 2 public wrappers */

.kmgm-public-page .kmgm-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    margin-top:36px;
}

.kmgm-public-page .kmgm-card {
    padding:30px;
    border:1px solid var(--kp-border);
    border-radius:var(--kp-radius);
    background:#fff;
    box-shadow:var(--kp-shadow);
}

.kmgm-public-page .kmgm-card h3 {
    margin:0 0 12px;
    color:var(--kp-navy-950);
}

.kmgm-public-page .kmgm-card p:last-child {
    margin-bottom:0;
}


/* ----------------------------------------------------------
   GENERATION 3
   kmgm-page-hero / kmgm-section pages
   ---------------------------------------------------------- */

.kmgm-page-hero {
    padding:clamp(82px,10vw,132px) 0;
    color:#fff;
    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(213,167,45,.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--kp-navy-950),
            var(--kp-navy-800)
        );
}

.kmgm-page-hero .kmgm-container,
.kmgm-section .kmgm-container,
.kmgm-cta .kmgm-container {
    width:min(1180px,calc(100% - 40px));
    margin-inline:auto;
}

.kmgm-page-hero .kmgm-eyebrow {
    margin:0 0 16px;
    color:var(--kp-gold-soft);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.kmgm-page-hero h1 {
    max-width:920px;
    margin:0 0 24px;
    color:#fff;
    font-size:clamp(2.6rem,6vw,5.2rem);
    line-height:1.02;
    letter-spacing:-.035em;
}

.kmgm-page-hero .kmgm-lead {
    max-width:780px;
    margin:0;
    color:rgba(255,255,255,.80);
    font-size:clamp(1.05rem,1.8vw,1.28rem);
    line-height:1.75;
}

.kmgm-page-hero .kmgm-scripture {
    max-width:780px;
    margin:20px 0 0;
    color:var(--kp-gold-soft);
    font-weight:700;
    line-height:1.65;
}

.kmgm-section {
    padding:clamp(62px,8vw,104px) 0;
}

.kmgm-section-soft {
    background:var(--kp-surface);
}

.kmgm-section h2 {
    margin:0 0 20px;
    color:var(--kp-navy-950);
    font-size:clamp(2rem,4vw,3.25rem);
    line-height:1.1;
    letter-spacing:-.025em;
}

.kmgm-section p {
    color:var(--kp-muted);
    line-height:1.75;
}

.kmgm-section .kmgm-eyebrow {
    margin:0 0 14px;
    color:#a77b1e;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.kmgm-section .kmgm-grid,
.kmgm-section .kmgm-card-grid,
.kmgm-section .kmgm-faq-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    margin-top:36px;
}

.kmgm-section .kmgm-card,
.kmgm-section .kmgm-faq-card {
    padding:30px;
    border:1px solid var(--kp-border);
    border-radius:var(--kp-radius);
    background:#fff;
    box-shadow:var(--kp-shadow);
}

.kmgm-section .kmgm-card h3,
.kmgm-section .kmgm-faq-card h3 {
    margin:0 0 12px;
    color:var(--kp-navy-950);
    font-size:1.22rem;
}


/* ----------------------------------------------------------
   CTA / ACTIONS
   ---------------------------------------------------------- */

.kmgm-public-page .kmgm-cta,
.kmgm-cta {
    padding:clamp(34px,5vw,58px);
    border-radius:var(--kp-radius-lg,26px);
    color:#fff;
    background:
        linear-gradient(
            135deg,
            #071426,
            #12345b
        );
}

.kmgm-public-page .kmgm-cta h2,
.kmgm-cta h2 {
    color:#fff;
}

.kmgm-public-page .kmgm-cta p,
.kmgm-cta p {
    color:rgba(255,255,255,.78);
}

.kmgm-public-page .kmgm-public-actions,
.kmgm-public-page .kmgm-actions,
.kmgm-section .kmgm-actions,
.kmgm-cta .kmgm-actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
}

.kmgm-public-page .kmgm-public-button,
.kmgm-public-page .kmgm-button,
.kmgm-section .kmgm-button,
.kmgm-cta .kmgm-button {
    display:inline-flex;
    min-height:50px;
    align-items:center;
    justify-content:center;
    padding:12px 22px;
    border:1px solid transparent;
    border-radius:999px;
    color:#071426;
    background:#d5a72d;
    font-weight:800;
    line-height:1.2;
    text-decoration:none;
}

.kmgm-public-page .kmgm-public-button-secondary,
.kmgm-public-page .kmgm-button-secondary,
.kmgm-section .kmgm-button-secondary,
.kmgm-cta .kmgm-button-secondary {
    border-color:rgba(255,255,255,.42);
    color:#fff;
    background:rgba(255,255,255,.08);
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width:900px) {
    .kmgm-public-page .kmgm-public-grid,
    .kmgm-public-page .kmgm-grid,
    .kmgm-section .kmgm-grid,
    .kmgm-section .kmgm-card-grid,
    .kmgm-section .kmgm-faq-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:620px) {
    .kmgm-public-page .kmgm-public-section {
        padding-left:20px;
        padding-right:20px;
    }

    .kmgm-page-hero .kmgm-container,
    .kmgm-section .kmgm-container,
    .kmgm-cta .kmgm-container {
        width:min(100% - 28px,1180px);
    }

    .kmgm-public-page .kmgm-public-grid,
    .kmgm-public-page .kmgm-grid,
    .kmgm-section .kmgm-grid,
    .kmgm-section .kmgm-card-grid,
    .kmgm-section .kmgm-faq-grid {
        grid-template-columns:1fr;
    }

    .kmgm-public-page .kmgm-public-actions,
.kmgm-public-page .kmgm-actions,
    .kmgm-section .kmgm-actions,
    .kmgm-cta .kmgm-actions {
        flex-direction:column;
    }

    .kmgm-public-page .kmgm-public-button,
.kmgm-public-page .kmgm-button,
    .kmgm-section .kmgm-button,
    .kmgm-cta .kmgm-button {
        width:100%;
    }
}

@media (prefers-reduced-motion:reduce) {
    .kmgm-public-page *,
    .kmgm-page-hero *,
    .kmgm-section * {
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
    }
}


/*
|--------------------------------------------------------------------------
| KMGMission Contact
|--------------------------------------------------------------------------
|
| Scoped canonical design for Contact page 58.
| No global selectors.
|
*/

.kmgm-contact-page {
    --kc-navy: #07111f;
    --kc-navy-soft: #0f2134;
    --kc-green: #17634d;
    --kc-green-bright: #22c55e;
    --kc-green-light: #86efac;
    --kc-gold: #d9bd72;
    --kc-gold-strong: #f59e0b;
    --kc-cream: #f7f5ef;
    --kc-white: #ffffff;
    --kc-text: #0f172a;
    --kc-muted: #64748b;
    --kc-border: #e2e8f0;
    --kc-shadow: 0 20px 50px rgba(7, 17, 31, 0.10);

    background: var(--kc-white);
    color: var(--kc-text);
}

.kmgm-contact-page .kmgm-contact-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 9vw, 118px) 24px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(217, 189, 114, 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #07111f 0%,
            #103d31 100%
        );
    color: var(--kc-white);
}

.kmgm-contact-page .kmgm-contact-hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(217, 189, 114, 0.25);
    border-radius: 50%;
}

.kmgm-contact-page .kmgm-contact-hero .kmgm-container {
    position: relative;
    z-index: 1;
}

.kmgm-contact-page .kmgm-contact-hero h1 {
    max-width: 820px;
    margin: 12px 0 18px;
    color: var(--kc-white);
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.kmgm-contact-page .kmgm-contact-hero .kmgm-eyebrow,
.kmgm-contact-page .kmgm-contact-eyebrow {
    color: var(--kc-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kmgm-contact-page .kmgm-contact-hero .kmgm-lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.75;
}

.kmgm-contact-page .kmgm-contact-section {
    padding: clamp(64px, 8vw, 104px) 24px;
}

.kmgm-contact-page .kmgm-contact-section--soft {
    background: var(--kc-cream);
}

.kmgm-contact-page .kmgm-contact-section--dark {
    background: var(--kc-navy);
    color: var(--kc-white);
}

.kmgm-contact-page .kmgm-contact-section-header {
    max-width: 760px;
    margin-bottom: 34px;
}

.kmgm-contact-page .kmgm-contact-section-header h2 {
    margin: 8px 0 12px;
    color: var(--kc-navy);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.kmgm-contact-page
.kmgm-contact-section--dark
.kmgm-contact-section-header h2 {
    color: var(--kc-white);
}

.kmgm-contact-page .kmgm-contact-section-header p {
    max-width: 700px;
    margin: 0;
    color: var(--kc-muted);
    line-height: 1.75;
}

.kmgm-contact-page
.kmgm-contact-section--dark
.kmgm-contact-section-header p {
    color: rgba(255, 255, 255, 0.72);
}

.kmgm-contact-page .kmgm-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.kmgm-contact-page .kmgm-contact-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--kc-border);
    border-radius: 22px;
    background: var(--kc-white);
    box-shadow: 0 10px 30px rgba(7, 17, 31, 0.05);
}

.kmgm-contact-page .kmgm-contact-card h3 {
    margin: 0 0 10px;
    color: var(--kc-navy);
    font-size: 1.08rem;
}

.kmgm-contact-page .kmgm-contact-card a {
    color: var(--kc-green);
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.kmgm-contact-page .kmgm-contact-card a:hover,
.kmgm-contact-page .kmgm-contact-card a:focus-visible {
    text-decoration: underline;
}

.kmgm-contact-page .kmgm-contact-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 4px solid var(--kc-gold);
    border-radius: 0 14px 14px 0;
    background: rgba(217, 189, 114, 0.12);
    color: #475569;
    line-height: 1.7;
}

.kmgm-contact-page .kmgm-contact-location {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.kmgm-contact-page .kmgm-contact-location-panel {
    padding: clamp(28px, 5vw, 46px);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            #103d31,
            #07111f
        );
    color: var(--kc-white);
    box-shadow: var(--kc-shadow);
}

.kmgm-contact-page .kmgm-contact-location-panel h2 {
    margin: 8px 0 20px;
    color: var(--kc-white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.kmgm-contact-page .kmgm-contact-location-panel p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.kmgm-contact-page .kmgm-contact-location-panel strong {
    color: var(--kc-white);
}

.kmgm-contact-page .kmgm-contact-location-panel a {
    display: inline-flex;
    margin-top: 12px;
}

.kmgm-contact-page .kmgm-contact-form-shell {
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--kc-border);
    border-radius: 30px;
    background: var(--kc-white);
    box-shadow: var(--kc-shadow);
}

.kmgm-contact-page .kmgm-contact-form {
    display: grid;
    gap: 20px;
}

.kmgm-contact-page .kmgm-contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.kmgm-contact-page .kmgm-contact-field {
    display: grid;
    gap: 8px;
}

.kmgm-contact-page .kmgm-contact-field--full {
    grid-column: 1 / -1;
}

.kmgm-contact-page .kmgm-contact-field label,
.kmgm-contact-page .kmgm-contact-field > span {
    color: var(--kc-navy);
    font-size: 0.92rem;
    font-weight: 750;
}

.kmgm-contact-page .kmgm-contact-field input,
.kmgm-contact-page .kmgm-contact-field textarea,
.kmgm-contact-page .kmgm-contact-field select {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: var(--kc-white);
    color: var(--kc-text);
    font: inherit;
    box-sizing: border-box;
}

.kmgm-contact-page .kmgm-contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.kmgm-contact-page .kmgm-contact-field input:focus,
.kmgm-contact-page .kmgm-contact-field textarea:focus,
.kmgm-contact-page .kmgm-contact-field select:focus {
    border-color: var(--kc-green);
    outline: 3px solid rgba(23, 99, 77, 0.13);
    outline-offset: 1px;
}

.kmgm-contact-page .kmgm-contact-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

.kmgm-contact-page .kmgm-contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.kmgm-contact-page .kmgm-contact-submit,
.kmgm-contact-page .kmgm-contact-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--kc-green);
    border-radius: 999px;
    background: var(--kc-green);
    color: var(--kc-white);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.kmgm-contact-page .kmgm-contact-submit:hover,
.kmgm-contact-page .kmgm-contact-button:hover {
    background: #124f3e;
    border-color: #124f3e;
    color: var(--kc-white);
}

.kmgm-contact-page .kmgm-contact-button--secondary {
    border-color: #cbd5e1;
    background: transparent;
    color: var(--kc-navy);
}

.kmgm-contact-page .kmgm-contact-button--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--kc-navy);
}

.kmgm-contact-page .kmgm-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.kmgm-contact-page .kmgm-contact-connections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.kmgm-contact-page .kmgm-contact-connection-card {
    padding: clamp(28px, 4vw, 40px);
    border: 1px solid var(--kc-border);
    border-radius: 26px;
    background: var(--kc-white);
}

.kmgm-contact-page .kmgm-contact-connection-card h2 {
    margin: 8px 0 12px;
    color: var(--kc-navy);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.kmgm-contact-page .kmgm-contact-connection-card p {
    color: var(--kc-muted);
    line-height: 1.75;
}

.kmgm-contact-page .kmgm-contact-enterprise {
    padding: clamp(34px, 5vw, 50px);
    border: 1px solid rgba(217, 189, 114, 0.25);
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.kmgm-contact-page .kmgm-contact-enterprise h2 {
    margin: 8px 0 12px;
    color: var(--kc-white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.kmgm-contact-page .kmgm-contact-enterprise p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.75;
}

.kmgm-contact-page
.kmgm-contact-section--dark
.kmgm-contact-button--secondary {
    border-color: rgba(255, 255, 255, 0.34);
    color: var(--kc-white);
}

.kmgm-contact-page
.kmgm-contact-section--dark
.kmgm-contact-button--secondary:hover {
    border-color: var(--kc-gold);
    background: rgba(217, 189, 114, 0.10);
    color: var(--kc-white);
}

@media (max-width: 900px) {
    .kmgm-contact-page .kmgm-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kmgm-contact-page .kmgm-contact-location,
    .kmgm-contact-page .kmgm-contact-connections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kmgm-contact-page .kmgm-contact-hero,
    .kmgm-contact-page .kmgm-contact-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .kmgm-contact-page .kmgm-contact-grid,
    .kmgm-contact-page .kmgm-contact-fields {
        grid-template-columns: 1fr;
    }

    .kmgm-contact-page .kmgm-contact-field--full {
        grid-column: auto;
    }

    .kmgm-contact-page .kmgm-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kmgm-contact-page .kmgm-contact-button,
    .kmgm-contact-page .kmgm-contact-submit {
        width: 100%;
    }
}
